From 6cf44fc839e8f1da820095928b5b25e7fc0a8521 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 10 Mar 2021 13:25:55 +0100 Subject: [PATCH] detect/alert: apply pd only actions to flow Ticket #4394 --- src/detect-engine-alert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detect-engine-alert.c b/src/detect-engine-alert.c index 7d6c7c8332..f570fe94f9 100644 --- a/src/detect-engine-alert.c +++ b/src/detect-engine-alert.c @@ -275,7 +275,8 @@ void PacketAlertFinalize(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx } } - if (s->flags & SIG_FLAG_IPONLY) { + /* IP-only and PD-only matches should apply to the flow */ + if (s->flags & (SIG_FLAG_IPONLY | SIG_FLAG_PDONLY)) { if (p->flow != NULL) { RuleActionToFlow(s->action, p->flow); }