]> 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>
Fri, 21 Jun 2024 08:21:23 +0000 (10:21 +0200)
This fixes the state handling and simplify the logic.

(cherry picked from commit b128a75973a2a73d28a4bd5b0a8c12cce4fc7d8f)

src/util-profiling.c

index 4473b57dbd065b23224383b60aa6faf1f4e3df50..1cf82210726f6880067c0b4ee3e567ed935d1761 100644 (file)
@@ -1470,7 +1470,6 @@ int SCProfileRuleStart(Packet *p)
         p->flags |= PKT_PROFILE;
         return 1;
     }
-
     return 0;
 }