From: Fredrik Tolf Date: Sat, 31 Aug 2024 14:25:40 +0000 (+0200) Subject: ratequeue: Fix rehash bug. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=caf363d10985dd372f0a7654fac7cfbfd0cc9dde;p=ashd.git ratequeue: Fix rehash bug. --- diff --git a/src/ratequeue.c b/src/ratequeue.c index 21d6ec3..a05187a 100644 --- a/src/ratequeue.c +++ b/src/ratequeue.c @@ -160,6 +160,7 @@ static void rehash(int nlen) if(nlen <= SBUCKETS) { nlen = SBUCKETS; new = sbuckets; + memset(sbuckets, 0, sizeof(sbuckets)); } else { new = szmalloc(sizeof(*new) * (1 << nlen)); }