]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: remove unneeded NULL check
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 1 Apr 2025 19:39:11 +0000 (21:39 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 2 Apr 2025 20:36:08 +0000 (22:36 +0200)
commitaf084c11ba63b71d57773cbca87df928ef300d6b
tree58da5983c3cec29362d602fbc631c485834b4dbd
parent640dd7c5827e506c7a3bc6a9ff14f92770659540
detect: remove unneeded NULL check

As spotted by cppcheck

fd is set only once, and DetectFlowSetup bails early if it is NULL

Fixes: c272a646c5ae ("detect: SigMatchAppendSMToList can fail")
src/detect-flow.c