]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: fix unittests for ThreadVars requirement 13732/head
authorVictor Julien <vjulien@oisf.net>
Tue, 6 May 2025 17:42:48 +0000 (19:42 +0200)
committerJuliana Fajardini <jufajardini@oisf.net>
Tue, 19 Aug 2025 14:48:44 +0000 (11:48 -0300)
(cherry picked from commit ee59d9a894ba6d396e98becc7aa7a8484f7f0f60)

src/flow-hash.c

index f89cfd1b4f7256c62d7a1c2c9e695289521e48ab..291aa6b526c5096bd149ae73feae1ab7e219bd1e 100644 (file)
@@ -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