From e6ee5feaba02639b3f93bc2931d6878503899d14 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 6 May 2014 20:48:47 +0200 Subject: [PATCH] flow: don't BUG_ON if no loggers are enabled API is always called, even if no loggers are enabled. Don't abort() in this case. --- src/output-flow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/output-flow.c b/src/output-flow.c index 826369fcc6..9364ca5e02 100644 --- a/src/output-flow.c +++ b/src/output-flow.c @@ -86,7 +86,10 @@ int OutputRegisterFlowLogger(const char *name, FlowLogger LogFunc, OutputCtx *ou */ TmEcode OutputFlowLog(ThreadVars *tv, void *thread_data, Flow *f) { BUG_ON(thread_data == NULL); - BUG_ON(list == NULL); + + if (list == NULL) + return TM_ECODE_OK; + //BUG_ON(list == NULL); OutputLoggerThreadData *op_thread_data = (OutputLoggerThreadData *)thread_data; OutputFlowLogger *logger = list;