aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-06 18:10:30 +0900
committerDaniel Stenberg <daniel@haxx.se>2015-06-24 23:44:42 +0200
commit1b5eba8324d0609381f000ae6eaf70fff36685d7 (patch)
tree930679e88b24b812763a1dc9b71cf6462f06f9e6 /lib
parentddb106d7f62cd6151461f95bf489342822f0dbf5 (diff)
http2: Use nghttp2 library error code for error return value
Diffstat (limited to 'lib')
-rw-r--r--lib/http2.c2
1 files changed, 1 insertions, 1 deletions
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;
}