From: Victor Julien Date: Tue, 6 May 2025 17:42:48 +0000 (+0200) Subject: flow: fix unittests for ThreadVars requirement X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13732%2Fhead;p=thirdparty%2Fsuricata.git flow: fix unittests for ThreadVars requirement (cherry picked from commit ee59d9a894ba6d396e98becc7aa7a8484f7f0f60) --- diff --git a/src/flow-hash.c b/src/flow-hash.c index f89cfd1b4f..291aa6b526 100644 --- a/src/flow-hash.c +++ b/src/flow-hash.c @@ -645,7 +645,7 @@ static void FlowExceptionPolicyStatsIncr( ThreadVars *tv, FlowLookupStruct *fls, enum ExceptionPolicy policy) { #ifdef UNITTESTS - if (tv == NULL) { + if (tv == NULL || fls->dtv == NULL) { return; } #endif