From 42ce297e0ea0922b7ad7db017daafd4dd0f1dae3 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 8 Sep 2020 10:29:23 +0200 Subject: [PATCH] flow: turn BUG_ON into debug check --- src/flow-manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flow-manager.c b/src/flow-manager.c index 2353e4ba0c..a06f8caa23 100644 --- a/src/flow-manager.c +++ b/src/flow-manager.c @@ -68,6 +68,7 @@ #include "ippair-timeout.h" #include "output-flow.h" +#include "util-validate.h" /* Run mode selected at suricata.c */ extern int run_mode; @@ -425,7 +426,7 @@ static void FlowManagerHashRowClearEvictedList(FlowManagerTimeoutThread *td, f->next = NULL; f->fb = NULL; - BUG_ON(f->use_cnt > 0 || !FlowBypassedTimeout(f, ts, counters)); + DEBUG_VALIDATE_BUG_ON(f->use_cnt > 0 || !FlowBypassedTimeout(f, ts, counters)); FlowQueuePrivateAppendFlow(&td->aside_queue, f); /* flow is still locked in the queue */