]> git.ipfire.org Git - thirdparty/curl.git/commit
http2: on_frame_recv: return early on stream 0
authorDaniel Stenberg <daniel@haxx.se>
Fri, 22 May 2015 13:17:16 +0000 (15:17 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 22 May 2015 13:17:16 +0000 (15:17 +0200)
commit84d811f6af15f9e3ce39f8603e6a2dacf7cdbcba
tree19aed15ab80586c06e7fe728b7d95b674fd98142
parentd04bab8873e45a59d71e146409035ba151bc877a
http2: on_frame_recv: return early on stream 0

Coverity CID 1299426 warned about possible NULL dereference otherwise,
but that would only ever happen if we get invalid HTTP/2 data with
frames for stream 0. Avoid this risk by returning early when stream 0 is
used.
lib/http2.c