From: Eric Leblond Date: Fri, 20 Aug 2021 08:42:13 +0000 (+0200) Subject: flow: be sure to check hash till the end X-Git-Tag: suricata-7.0.0-beta1~1476 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7468c55ca4a8375ca6ca12396a4c61af6465041;p=thirdparty%2Fsuricata.git flow: be sure to check hash till the end --- 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;