detect: remove dead code

pull/6383/head
Victor Julien 4 years ago
parent 33c8fda795
commit ae89874b06

@ -745,7 +745,6 @@ static inline void DetectRulePacketRules(
while (match_cnt--) { while (match_cnt--) {
RULE_PROFILING_START(p); RULE_PROFILING_START(p);
uint8_t alert_flags = 0; uint8_t alert_flags = 0;
bool state_alert = false;
#ifdef PROFILING #ifdef PROFILING
bool smatch = false; /* signature match */ bool smatch = false; /* signature match */
#endif #endif
@ -802,9 +801,7 @@ static inline void DetectRulePacketRules(
DetectRunPostMatch(tv, det_ctx, p, s); DetectRunPostMatch(tv, det_ctx, p, s);
if (!(sflags & SIG_FLAG_NOALERT)) { if (!(sflags & SIG_FLAG_NOALERT)) {
/* stateful sigs call PacketAlertAppend from DeStateDetectStartDetection */ PacketAlertAppend(det_ctx, s, p, 0, alert_flags);
if (!state_alert)
PacketAlertAppend(det_ctx, s, p, 0, alert_flags);
} else { } else {
/* apply actions even if not alerting */ /* apply actions even if not alerting */
DetectSignatureApplyActions(p, s, alert_flags); DetectSignatureApplyActions(p, s, alert_flags);

Loading…
Cancel
Save