From: Victor Julien Date: Thu, 10 Apr 2014 06:19:06 +0000 (+0200) Subject: drop loggers: call disable func X-Git-Tag: suricata-2.0.1rc1~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f96a54535c2b063404f865e6f16a9c6a5b976c8e;p=thirdparty%2Fsuricata.git drop loggers: call disable func Call OutputDropLoggerDisable() on cleanup. --- diff --git a/src/log-droplog.c b/src/log-droplog.c index 10b4d20836..8487ca0cf8 100644 --- a/src/log-droplog.c +++ b/src/log-droplog.c @@ -120,6 +120,8 @@ static TmEcode LogDropLogThreadDeinit(ThreadVars *t, void *data) */ static void LogDropLogDeInitCtx(OutputCtx *output_ctx) { + OutputDropLoggerDisable(); + if (output_ctx != NULL) { LogFileCtx *logfile_ctx = (LogFileCtx *)output_ctx->data; if (logfile_ctx != NULL) { diff --git a/src/output-json-drop.c b/src/output-json-drop.c index 9d953b1fba..a9cb069e13 100644 --- a/src/output-json-drop.c +++ b/src/output-json-drop.c @@ -186,6 +186,8 @@ static TmEcode JsonDropLogThreadDeinit(ThreadVars *t, void *data) static void JsonDropLogDeInitCtx(OutputCtx *output_ctx) { + OutputDropLoggerDisable(); + LogFileCtx *logfile_ctx = (LogFileCtx *)output_ctx->data; LogFileFreeCtx(logfile_ctx); SCFree(output_ctx);