]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/iprep: fix host locking issues
authorVictor Julien <vjulien@oisf.net>
Wed, 23 Feb 2022 10:08:45 +0000 (11:08 +0100)
committerVictor Julien <vjulien@oisf.net>
Thu, 24 Feb 2022 17:23:30 +0000 (18:23 +0100)
commit49a36bb323d44a3ef453f284c35780523c9d3bd7
treeed13c5b7dd70da56c53d3d7f8dc5259407aaab17
parent172d2b28a58d923ddbc5644dd3bfb52e353b8a55
detect/iprep: fix host locking issues

Separate the code paths between reusing a Packet stored host reference
and fetching a new reference from the host hash.

This addresses the issue where in some conditions use_cnt could get
desync'd.

Bug: #2802.
src/detect-iprep.c