]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/engine: use alert queue from det_ctx
authorJuliana Fajardini <jufajardini@gmail.com>
Tue, 19 Apr 2022 13:58:22 +0000 (10:58 -0300)
committerVictor Julien <vjulien@oisf.net>
Tue, 3 May 2022 07:10:02 +0000 (09:10 +0200)
Task #4943

(cherry picked from commit aa547a8de38d7066d47d83449fba67a0a640260d)

src/detect-engine-iponly.c
src/detect.c

index d0647f09d67351f640829c6dd79dabd6f8694630..c55b68ee9a108b2baaf3a985d343d9db2914d8e6 100644 (file)
@@ -1133,7 +1133,7 @@ void IPOnlyMatchPacket(ThreadVars *tv,
                             }
                         }
                     }
-                    PacketAlertAppend(det_ctx, s, p, 0, 0);
+                    AlertQueueAppend(det_ctx, s, p, 0, 0);
                 }
             }
         }
index ca471dfe8f26afa98d11eb6775c2e21caf475f8c..127a914ec4b205beae7c237f121691e34f2062a2 100644 (file)
@@ -797,7 +797,7 @@ static inline void DetectRulePacketRules(
 #endif
         DetectRunPostMatch(tv, det_ctx, p, s);
 
-        PacketAlertAppend(det_ctx, s, p, 0, alert_flags);
+        AlertQueueAppend(det_ctx, s, p, 0, alert_flags);
 next:
         DetectVarProcessList(det_ctx, pflow, p);
         DetectReplaceFree(det_ctx);
@@ -1485,7 +1485,7 @@ static void DetectRunTx(ThreadVars *tv,
 
                 const uint8_t alert_flags = (PACKET_ALERT_FLAG_STATE_MATCH | PACKET_ALERT_FLAG_TX);
                 SCLogDebug("%p/%"PRIu64" sig %u (%u) matched", tx.tx_ptr, tx.tx_id, s->id, s->num);
-                PacketAlertAppend(det_ctx, s, p, tx.tx_id, alert_flags);
+                AlertQueueAppend(det_ctx, s, p, tx.tx_id, alert_flags);
             }
             DetectVarProcessList(det_ctx, p->flow, p);
             RULE_PROFILING_END(det_ctx, s, r, p);