From b128a75973a2a73d28a4bd5b0a8c12cce4fc7d8f Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 8 Nov 2023 21:20:28 +0100 Subject: [PATCH] profiling: check packet flag first This fixes the state handling and simplify the logic. --- src/util-profiling.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util-profiling.c b/src/util-profiling.c index efc22fea6e7d..11b853566278 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; }