]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: fix duplicate detect state issue 7878/head
authorVictor Julien <vjulien@oisf.net>
Sat, 27 Aug 2022 05:50:45 +0000 (07:50 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 19 Sep 2022 17:09:06 +0000 (19:09 +0200)
commitf40ad90adf9b13c13435990c49bd00d5fa9824ee
treef9909491016b16260518742ab613cb1d21199d5e
parentdbadca1567010b4aaf0f481caa3dd0d163a3a4e9
detect: fix duplicate detect state issue

For protocols with multi buffer inspection there could be multiple times
the same sid would be queued into the candidates queue. This triggered
a debug validation check.

W/o debug validation this would lead to duplicate work and possibly multiple
alerts where a single one would be appropriate.

Bug: 5419.
(cherry picked from commit 1bff888947345505c773ab07337546aa72e95d16)
src/detect.c