From: Daniel Stenberg Date: Wed, 21 Oct 2015 13:45:07 +0000 (+0200) Subject: http2: on_frame_recv: trust the conn/data input X-Git-Tag: curl-7_46_0~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=419d410ca0728ae591af9f58ef2c1f4132b0a21d;p=thirdparty%2Fcurl.git 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. --- diff --git a/lib/http2.c b/lib/http2.c index 9768c97da0..87d4a19ec0 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: