]> git.ipfire.org Git - people/ms/suricata.git/commit - rust/src/http2/http2.rs
http2: range: check return value when opening
authorPhilippe Antoine <contact@catenacyber.fr>
Wed, 29 Sep 2021 15:06:55 +0000 (17:06 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 29 Sep 2021 20:38:43 +0000 (22:38 +0200)
commit8e8899c90cdf608f543bdbc6504251a51a222d9c
tree2a5e3ffaa6e6b601db9a7b3cfda8c8761aecc27f
parent65a6f61004890c41202c66a55bcb89ed45760df1
http2: range: check return value when opening

HttpRangeContainerOpenFile can return NULL
so, http2_range_open can set file_range to NULL
And we should check this before calling http2_range_close
rust/src/http2/http2.rs