]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: do not store state without flags
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 18 Sep 2023 11:29:08 +0000 (13:29 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 30 Jan 2024 08:35:16 +0000 (09:35 +0100)
commit2fb50598f23b112f14ec15330e11c40b74caa35f
tree6665debda08ee9b99e880e20adfc88c0a694f1cb
parent5bb8800588e7b4a09e1770f049cd88be71e2d30b
detect: do not store state without flags

If flags are zero, there is nothing to store and remember.

Stored signatures will be reused on a later packet, and
qsorted (which may be expensive), with newer matches candidates.

Avoiding to store, leads to avoid the call to qsort.
src/detect.c