From: Victor Julien Date: Tue, 12 Jul 2016 15:07:10 +0000 (+0200) Subject: output lua: set proper logging progress values X-Git-Tag: suricata-3.1.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a26e59cb6d0e9052a7383efa47eb639ea9a36238;p=thirdparty%2Fsuricata.git output lua: set proper logging progress values --- diff --git a/src/output-lua.c b/src/output-lua.c index e3d4556660..d053487da9 100644 --- a/src/output-lua.c +++ b/src/output-lua.c @@ -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;