]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/alert: apply pd only actions to flow
authorVictor Julien <victor@inliniac.net>
Wed, 10 Mar 2021 12:25:55 +0000 (13:25 +0100)
committerJeff Lucovsky <jeff@lucovsky.org>
Sat, 1 May 2021 12:29:28 +0000 (08:29 -0400)
Ticket #4394

(cherry picked from commit 6cf44fc839e8f1da820095928b5b25e7fc0a8521)

src/detect-engine-alert.c

index 7d6c7c833238177d00320f2704577ffea9c6f10e..f570fe94f90d2e9ebc07ed1df96c81b20c2df57d 100644 (file)
@@ -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);
                 }