]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: fix rule inspection order
authorVictor Julien <vjulien@oisf.net>
Mon, 25 Apr 2022 16:00:24 +0000 (18:00 +0200)
committerVictor Julien <vjulien@oisf.net>
Wed, 27 Apr 2022 09:10:21 +0000 (11:10 +0200)
commit8a353c57757bd1264afa7665251bd1bf1e3ebdc5
tree8752c3e6f8c72d825e63b5ab2e91b91783593499
parentf4a556c93619d905c9b6b16dfda58f2dd418e794
detect: fix rule inspection order

Fix rules from the 'match' list getting added to the tx candidates list
unsorted. In some cases this could lead to the same sid getting inspected
twice leading to a DEBUG_VALIDATION_BUG_ON trigger.

Bug: #5144.
(cherry picked from commit 4bb00964ac22f0f96704cf5befca76d056763142)
src/detect.c