From 508bb71d78053d2ad9bb6637a2f409ea884bc6fd Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 26 May 2026 10:09:51 +0200 Subject: [PATCH] detect: minor action handling cleanup Don't run exact same check twice. --- src/detect-engine-alert.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/detect-engine-alert.c b/src/detect-engine-alert.c index 2e2b417e1b..5c0cd6cafe 100644 --- a/src/detect-engine-alert.c +++ b/src/detect-engine-alert.c @@ -189,10 +189,8 @@ static inline void RuleActionToFlow(const uint8_t action, Flow *f, const bool fw (action & ACTION_PASS) ? "pass" : "drop", (f->flags & FLOW_ACTION_DROP) ? "drop" : "pass"); } else { - if (action & (ACTION_DROP | ACTION_REJECT_ANY)) { - f->flags |= FLOW_ACTION_DROP; - SCLogDebug("setting flow action drop"); - } + f->flags |= FLOW_ACTION_DROP; + SCLogDebug("setting flow action drop"); } }