Commit ae74a186 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

examples: Fix libevent-server which could not send error reply

parent 85a43cfa
......@@ -392,7 +392,7 @@ static int error_reply(nghttp2_session *session,
writelen = write(pipefd[1], ERROR_HTML, sizeof(ERROR_HTML) - 1);
close(pipefd[1]);
if(writelen != sizeof(ERROR_HTML)) {
if(writelen != sizeof(ERROR_HTML) - 1) {
close(pipefd[0]);
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment