mirror of
https://github.com/moparisthebest/curl
synced 2024-11-04 08:35:05 -05:00
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.
This commit is contained in:
parent
3042cb5043
commit
419d410ca0
@ -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",
|
DEBUGF(infof(data_s, "on_frame_recv() header %x stream %x\n",
|
||||||
frame->hd.type, stream_id));
|
frame->hd.type, stream_id));
|
||||||
|
|
||||||
conn = data_s->easy_conn;
|
|
||||||
assert(conn);
|
|
||||||
assert(conn->data == data_s);
|
|
||||||
httpc = &conn->proto.httpc;
|
httpc = &conn->proto.httpc;
|
||||||
switch(frame->hd.type) {
|
switch(frame->hd.type) {
|
||||||
case NGHTTP2_DATA:
|
case NGHTTP2_DATA:
|
||||||
|
Loading…
Reference in New Issue
Block a user