From a093580527cf6cfa448be02f27681f561520492c Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 7 Jun 2016 14:55:18 -0600 Subject: [PATCH] logging: just return if no tx loggers --- src/output-tx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/output-tx.c b/src/output-tx.c index f68b1aa85e..b39967c899 100644 --- a/src/output-tx.c +++ b/src/output-tx.c @@ -130,7 +130,10 @@ int OutputRegisterTxLogger(LoggerId id, const char *name, AppProto alproto, static TmEcode OutputTxLog(ThreadVars *tv, Packet *p, void *thread_data, PacketQueue *pq, PacketQueue *postpq) { BUG_ON(thread_data == NULL); - BUG_ON(list == NULL); + if (list == NULL) { + /* No child loggers registered. */ + return TM_ECODE_OK; + } OutputLoggerThreadData *op_thread_data = (OutputLoggerThreadData *)thread_data; OutputTxLogger *logger = list;