]> git.ipfire.org Git - thirdparty/suricata.git/commit
http2: fix leak with range files
authorPhilippe Antoine <pantoine@oisf.net>
Sat, 21 Jan 2023 17:19:47 +0000 (18:19 +0100)
committerVictor Julien <vjulien@oisf.net>
Thu, 26 Jan 2023 05:58:53 +0000 (06:58 +0100)
commitba99241957b8fd2f1478bf3d1929eedb4f7094ab
treeb5514c8b8433a81b683ad8bf720439f9fac46526
parenta0fc00bb480833363af735b7d92f9c6956ddd6dd
http2: fix leak with range files

Ticket: #5808

May have been introduced by a24d7dc45c818054f97448ce42ca9ba270b3b8e4

Function http2_range_open expects to be called only when
tx.file_range is nil. One condition to ensure this is to check
that we are beginning the files contents. The filetracker field
file_open is not fit for this, as it may be reset to false.
rust/src/filetracker.rs
rust/src/http2/http2.rs