From c2561b265560dd19e26bcbf3ed15e5fbb9084129 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 11 May 2020 17:33:02 +0200 Subject: [PATCH] flow: cleanup validation check --- src/flow.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/flow.c b/src/flow.c index 899e4fad86..a7384b6dc9 100644 --- a/src/flow.c +++ b/src/flow.c @@ -56,6 +56,7 @@ #include "util-debug.h" #include "util-privs.h" +#include "util-validate.h" #include "detect.h" #include "detect-engine-state.h" @@ -703,9 +704,7 @@ void FlowShutdown(void) for (u = 0; u < flow_config.hash_size; u++) { f = flow_hash[u].head; while (f) { -#ifdef DEBUG_VALIDATION - BUG_ON(SC_ATOMIC_GET(f->use_cnt) != 0); -#endif + DEBUG_VALIDATE_BUG_ON(SC_ATOMIC_GET(f->use_cnt) != 0); Flow *n = f->hnext; uint8_t proto_map = FlowGetProtoMapping(f->proto); FlowClearMemory(f, proto_map); -- 2.47.2