diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-10-21 15:45:07 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-10-21 23:15:09 +0200 |
commit | 27daecefb9966b1d858bb06e10329715801a02ed (patch) | |
tree | fdff6bd30610caeba9a92507f1bdcadbfae44b39 | |
parent | f83baa04411836d6afd228c73ddabe966131ffa7 (diff) | |
download | curl-27daecefb9966b1d858bb06e10329715801a02ed.tar.gz |
http2: on_frame_recv: trust the conn/data input
Removed wrong assert()s
The 'conn' passed in as userdata can be used and there can be other
sessionhandles ('data') than the single one this checked for.
-rw-r--r-- | lib/http2.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/http2.c b/lib/http2.c index 9768c97da..87d4a19ec 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -424,9 +424,6 @@ static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame, DEBUGF(infof(data_s, "on_frame_recv() header %x stream %x\n", frame->hd.type, stream_id)); - conn = data_s->easy_conn; - assert(conn); - assert(conn->data == data_s); httpc = &conn->proto.httpc; switch(frame->hd.type) { case NGHTTP2_DATA: |