From d7468c55ca4a8375ca6ca12396a4c61af6465041 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 20 Aug 2021 10:42:13 +0200 Subject: [PATCH] flow: be sure to check hash till the end --- src/flow-manager.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/flow-manager.c b/src/flow-manager.c index 503785b4bf..c142e75c3f 100644 --- a/src/flow-manager.c +++ b/src/flow-manager.c @@ -561,8 +561,10 @@ static uint32_t FlowTimeoutHashInChunks(FlowManagerTimeoutThread *td, const uint32_t min = iter * chunk_size + hash_min; uint32_t max = min + chunk_size; + /* we start at beginning of hash at next iteration so let's check + * hash till the end */ if (iter + 1 == chunks) { - max = rows; + max = hash_max; } const uint32_t cnt = FlowTimeoutHash(td, ts, min, max, counters); return cnt;