]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output lua: set proper logging progress values
authorVictor Julien <victor@inliniac.net>
Tue, 12 Jul 2016 15:07:10 +0000 (17:07 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 12 Jul 2016 15:53:04 +0000 (17:53 +0200)
src/output-lua.c

index e3d45566605b8711c359ca0d5730deb75ddc53de..d053487da9016ffe67bd23cbcca3479be0387b43 100644 (file)
@@ -867,6 +867,8 @@ static OutputCtx *OutputLuaLogInit(ConfNode *conf)
         } else if (opts.alproto == ALPROTO_HTTP) {
             om->TxLogFunc = LuaTxLogger;
             om->alproto = ALPROTO_HTTP;
+            om->ts_log_progress = -1;
+            om->tc_log_progress = -1;
             AppLayerParserRegisterLogger(IPPROTO_TCP, ALPROTO_HTTP);
         } else if (opts.alproto == ALPROTO_TLS) {
             om->TxLogFunc = LuaTxLogger;
@@ -876,6 +878,8 @@ static OutputCtx *OutputLuaLogInit(ConfNode *conf)
        } else if (opts.alproto == ALPROTO_DNS) {
             om->TxLogFunc = LuaTxLogger;
             om->alproto = ALPROTO_DNS;
+            om->ts_log_progress = -1;
+            om->tc_log_progress = -1;
             AppLayerParserRegisterLogger(IPPROTO_TCP, ALPROTO_DNS);
             AppLayerParserRegisterLogger(IPPROTO_UDP, ALPROTO_DNS);
         } else if (opts.alproto == ALPROTO_SSH) {
@@ -884,6 +888,8 @@ static OutputCtx *OutputLuaLogInit(ConfNode *conf)
         } else if (opts.alproto == ALPROTO_SMTP) {
             om->TxLogFunc = LuaTxLogger;
             om->alproto = ALPROTO_SMTP;
+            om->ts_log_progress = -1;
+            om->tc_log_progress = -1;
             AppLayerParserRegisterLogger(IPPROTO_TCP, ALPROTO_SMTP);
         } else if (opts.packet && opts.alerts) {
             om->PacketLogFunc = LuaPacketLoggerAlerts;