From: Victor Julien Date: Tue, 8 Sep 2020 08:29:23 +0000 (+0200) Subject: flow: turn BUG_ON into debug check X-Git-Tag: suricata-6.0.0-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42ce297e0ea0922b7ad7db017daafd4dd0f1dae3;p=thirdparty%2Fsuricata.git flow: turn BUG_ON into debug check --- 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 */