]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
HTTP/2: Reset promised stream, not its associated stream.
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Thu, 7 Aug 2014 14:10:21 +0000 (23:10 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Aug 2014 14:54:45 +0000 (16:54 +0200)
lib/http2.c

index aa3b5f1db2ee2d74167c211da083d849f0a60899..f5715908402ae7f89228083ef77dc32a2f27bc2f 100644 (file)
@@ -263,7 +263,8 @@ static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame,
     break;
   case NGHTTP2_PUSH_PROMISE:
     rv = nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE,
-                                   frame->hd.stream_id, NGHTTP2_CANCEL);
+                                   frame->push_promise.promised_stream_id,
+                                   NGHTTP2_CANCEL);
     if(nghttp2_is_fatal(rv)) {
       return rv;
     }