From 66ee250e5ccd77e4cc0dd685b56503ec767238ed Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Mon, 13 Jul 2026 15:30:49 +0300 Subject: [PATCH] Fix: hashstable item is added with wrong index on table grow --- src/hash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hash.c b/src/hash.c index e486d7d..50ca93a 100644 --- a/src/hash.c +++ b/src/hash.c @@ -197,6 +197,7 @@ void hashadd(struct hashtable *ht, void* name, void* value, time_t expires){ if(!ht->ihashempty){ hashgrow(ht); + index = hashindex(ht, ht->tablesize, hash); } if(ht->ihashempty){