From 644a231e9ac2860abce0a1e3961aea0a78666256 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 1 Jun 2023 08:00:54 +0200 Subject: [PATCH] detect: fix stateful drops for rate_filter (cherry picked from commit 418cc1fe947dd96a6cadb13fa1fbb5c9d5fb7ce0) --- src/detect-engine-alert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-engine-alert.c b/src/detect-engine-alert.c index 04c5f3e567..a40f992ced 100644 --- a/src/detect-engine-alert.c +++ b/src/detect-engine-alert.c @@ -322,7 +322,7 @@ static inline void FlowApplySignatureActions( * - sig is IP or PD only * - match is in applayer * - match is in stream */ - if (s->action & (ACTION_DROP | ACTION_PASS)) { + if (pa->action & (ACTION_DROP | ACTION_PASS)) { if ((pa->flags & (PACKET_ALERT_FLAG_STATE_MATCH | PACKET_ALERT_FLAG_STREAM_MATCH)) || (s->flags & (SIG_FLAG_IPONLY | SIG_FLAG_LIKE_IPONLY | SIG_FLAG_PDONLY | SIG_FLAG_APPLAYER))) { -- 2.47.2