Skip to content

Commit

Permalink
detect/alert: flag packets with PASS action
Browse files Browse the repository at this point in the history
If packet->action is never set to 'pass', we won't know if a packet had
a 'pass' verdict.

Related to
Bug #5464
  • Loading branch information
jufajardini committed Jul 12, 2023
1 parent 5825647 commit 40d30ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/detect-engine-alert.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ void PacketAlertFinalize(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx

/* pass "alert" found, we're done */
if (pa->action & ACTION_PASS) {
p->action |= ACTION_PASS;
break;
}
p->alerts.cnt++;
Expand Down

0 comments on commit 40d30ed

Please sign in to comment.