]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
unified2: fix logging of tagged packets
authorJason Ish <ish@unx.ca>
Tue, 16 Aug 2016 19:39:48 +0000 (13:39 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 17 Aug 2016 11:32:43 +0000 (13:32 +0200)
The structure for create the alert preceding each tagged packet
was not being initialized, preventing tagged packets from being
logged.

Note: Snort unified2 does not precede tagged packets with an
alert like is done here, so this just fixes what the code
intended to do, it does not make it Snort unified2
compatible.

Address issue:
https://redmine.openinfosecfoundation.org/issues/1854

src/suricata.c

index 7db868e42be136254cb4b6952774e875e6892645..99611cb4de70036f0689a6246a2556ae5505e524 100644 (file)
@@ -2376,6 +2376,7 @@ static int PostConfLoadedSetup(SCInstance *suri)
     SCProtoNameInit();
 
     TagInitCtx();
+    PacketAlertTagInit();
     ThresholdInit();
     HostBitInitCtx();
     IPPairBitInitCtx();