From 1b5eba8324d0609381f000ae6eaf70fff36685d7 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 6 Jun 2015 18:10:30 +0900 Subject: [PATCH] http2: Use nghttp2 library error code for error return value --- lib/http2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http2.c b/lib/http2.c index a6e2cc658..fc0d5de91 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -721,7 +721,7 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame, if(!headp) { free(stream->push_headers); stream->push_headers = NULL; - return 1; + return NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE; } stream->push_headers = headp; }