From: Eric Leblond Date: Wed, 8 Nov 2023 20:20:28 +0000 (+0100) Subject: profiling: check packet flag first X-Git-Tag: suricata-8.0.0-beta1~1163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b128a75973a2a73d28a4bd5b0a8c12cce4fc7d8f;p=thirdparty%2Fsuricata.git profiling: check packet flag first This fixes the state handling and simplify the logic. --- diff --git a/src/util-profiling.c b/src/util-profiling.c index efc22fea6e..11b8535662 100644 --- a/src/util-profiling.c +++ b/src/util-profiling.c @@ -1472,7 +1472,6 @@ int SCProfileRuleStart(Packet *p) p->flags |= PKT_PROFILE; return 1; } - return 0; }