]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: fix inspection order with stateful rules 5610/head
authorVictor Julien <victor@inliniac.net>
Mon, 30 Nov 2020 06:44:54 +0000 (07:44 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 30 Nov 2020 06:48:18 +0000 (07:48 +0100)
commit46644440671c3bfeb9c1423aa1684191ff6db961
tree3d49a25c669e5ee3b8b7b47ed41b886f0b360c40
parentba781265a4d5c05bd5cde397dd4c1891994125aa
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.
src/detect.c