]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: Use nghttp2 library error code for error return value
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Sat, 6 Jun 2015 09:10:30 +0000 (18:10 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 24 Jun 2015 21:44:42 +0000 (23:44 +0200)
lib/http2.c

index a6e2cc6586a7598482301c33345fd9eb9b238139..fc0d5de913d55cd8a5347ea232c803d1d7ba8faa 100644 (file)
@@ -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;
     }