]> 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>
Fri, 3 Jun 2022 09:55:42 +0000 (11:55 +0200)
Task #4943

(cherry picked from commit 13fd8ced10f3dbbf838462608b6387f4d94cf8e6)

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

index 8e297f6b73e0edabf90cd1956d21ea2a04a4d9e1..b4faed0d2350bf0bb2ac0c46cb564b06a55666da 100644 (file)
@@ -1129,7 +1129,7 @@ void IPOnlyMatchPacket(ThreadVars *tv,
                             }
                         }
                     }
-                    PacketAlertAppend(det_ctx, s, p, 0, 0);
+                    AlertQueueAppend(det_ctx, s, p, 0, 0);
                 }
             }
         }
index 675f3e79b08a8b168197a2f2fd27e0697d5b184a..841ef778e2fd51198de08e6d589d4b61cf6166d4 100644 (file)
@@ -798,7 +798,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);
@@ -1458,7 +1458,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);