From ae89874b066c91675b809e8cf992d780331efb1c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 10 Sep 2021 10:19:50 +0200 Subject: [PATCH] detect: remove dead code --- src/detect.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/detect.c b/src/detect.c index 2cdcfa7ab4..8d8c503833 100644 --- a/src/detect.c +++ b/src/detect.c @@ -745,7 +745,6 @@ static inline void DetectRulePacketRules( while (match_cnt--) { RULE_PROFILING_START(p); uint8_t alert_flags = 0; - bool state_alert = false; #ifdef PROFILING bool smatch = false; /* signature match */ #endif @@ -802,9 +801,7 @@ static inline void DetectRulePacketRules( DetectRunPostMatch(tv, det_ctx, p, s); if (!(sflags & SIG_FLAG_NOALERT)) { - /* stateful sigs call PacketAlertAppend from DeStateDetectStartDetection */ - if (!state_alert) - PacketAlertAppend(det_ctx, s, p, 0, alert_flags); + PacketAlertAppend(det_ctx, s, p, 0, alert_flags); } else { /* apply actions even if not alerting */ DetectSignatureApplyActions(p, s, alert_flags); -- 2.47.2