]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: fix inspection order with stateful rules
authorVictor Julien <victor@inliniac.net>
Mon, 30 Nov 2020 06:44:54 +0000 (07:44 +0100)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 3 Dec 2020 22:39:55 +0000 (04:09 +0530)
commitf7ffd5e901f17c04e66680222131b2c06a0f812f
tree7afbb0629258e6bd41f300304fdbfe03fe2b3cef
parentb508182c11dfc4aae3ea91a7e2ff930aa7a66232
detect: fix inspection order with stateful rules

When stateful detection rules, for which detection has already started
for a previous packet, are added to the candidates array, the array
is sorted to mantain the correct inspection order. However, due to a
trivial error in the sort helper the array was sorted in descending
instead of ascending order.

(cherry picked from commit 46644440671c3bfeb9c1423aa1684191ff6db961)
src/detect.c