aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-08-07 23:10:21 +0900
committerDaniel Stenberg <daniel@haxx.se>2014-08-07 16:54:45 +0200
commitf05e1a991a642faeb531f80f78aaf1d11a2fb392 (patch)
treebfaca46c877727cef1d75b922642f5944bb6e9ea /lib
parent7ceada43affff8b971fa6be0acdd08eefb8ba991 (diff)
HTTP/2: Reset promised stream, not its associated stream.
Diffstat (limited to 'lib')
-rw-r--r--lib/http2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c
index aa3b5f1db..f57159084 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -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;
}