From: Jason Ish Date: Tue, 16 Aug 2016 19:39:48 +0000 (-0600) Subject: unified2: fix logging of tagged packets X-Git-Tag: suricata-3.1.2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e6ce016004249bf048241bddb8cab5eea9c6368;p=thirdparty%2Fsuricata.git unified2: fix logging of tagged packets 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 --- diff --git a/src/suricata.c b/src/suricata.c index 7db868e42b..99611cb4de 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -2376,6 +2376,7 @@ static int PostConfLoadedSetup(SCInstance *suri) SCProtoNameInit(); TagInitCtx(); + PacketAlertTagInit(); ThresholdInit(); HostBitInitCtx(); IPPairBitInitCtx();