]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
profiling: check packet flag first
authorEric Leblond <el@stamus-networks.com>
Wed, 8 Nov 2023 20:20:28 +0000 (21:20 +0100)
committerVictor Julien <victor@inliniac.net>
Sat, 15 Jun 2024 13:43:31 +0000 (15:43 +0200)
This fixes the state handling and simplify the logic.

src/util-profiling.c

index efc22fea6e7d88ace2790e993f9da83db1b3fe94..11b8535662782fd00eb19d20352a68eeab118f5d 100644 (file)
@@ -1472,7 +1472,6 @@ int SCProfileRuleStart(Packet *p)
         p->flags |= PKT_PROFILE;
         return 1;
     }
-
     return 0;
 }