From ae74a186241f8612d112fb094b97b618ff5a3617 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 18 Jun 2014 13:11:01 +0900 Subject: [PATCH] examples: Fix libevent-server which could not send error reply --- examples/libevent-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/libevent-server.c b/examples/libevent-server.c index e5a416c9..d6591ea5 100644 --- a/examples/libevent-server.c +++ b/examples/libevent-server.c @@ -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; }