]> granicus.if.org Git - curl/commitdiff
http2: on_frame_recv: trust the conn/data input
authorDaniel Stenberg <daniel@haxx.se>
Wed, 21 Oct 2015 13:45:07 +0000 (15:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 Oct 2015 06:22:38 +0000 (08:22 +0200)
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.

lib/http2.c

index 9768c97da0edd6e6461f7a9d0fdca2ad14d19642..87d4a19ec0db1155223486569eb83e992f8e9af1 100644 (file)
@@ -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: