]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: add defensive check
authorShivani Bhardwaj <shivani@oisf.net>
Thu, 13 Jun 2024 13:05:31 +0000 (18:35 +0530)
committerVictor Julien <victor@inliniac.net>
Sat, 22 Jun 2024 13:54:34 +0000 (15:54 +0200)
src/flow-manager.c

index 92eeea6b4a5899dd231a3453c835540f11b0699c..d5def431a1094a13d022bef9f62f9309336e35d9 100644 (file)
@@ -566,6 +566,7 @@ static uint32_t FlowCleanupHash(void)
             FlowWakeupFlowRecyclerThread();
         }
     }
+    DEBUG_VALIDATE_BUG_ON(local_queue.len >= 25);
     FlowQueueAppendPrivate(&flow_recycle_q, &local_queue);
     FlowWakeupFlowRecyclerThread();