From: Tatsuhiro Tsujikawa Date: Sat, 6 Jun 2015 09:10:30 +0000 (+0900) Subject: http2: Use nghttp2 library error code for error return value X-Git-Tag: curl-7_44_0~125 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b5eba8324d0609381f000ae6eaf70fff36685d7;p=thirdparty%2Fcurl.git http2: Use nghttp2 library error code for error return value --- diff --git a/lib/http2.c b/lib/http2.c index a6e2cc6586..fc0d5de913 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; }