]> 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)
committerShivani Bhardwaj <shivanib134@gmail.com>
Tue, 8 Mar 2022 13:33:47 +0000 (19:03 +0530)
commit8d12189a080cc866fe9a21548e4b9dc6a02bae0a
tree85a8b2b965ec2958d10426659716890641c4424b
parent1ec3a574c71125a927713fa9e82902d5142aa351
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.
(cherry picked from commit 49a36bb323d44a3ef453f284c35780523c9d3bd7)
src/detect-iprep.c