From d9b14932601dc216b7fe4e9c7b807ad3e76fcfae Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Sun, 19 Apr 2026 19:22:22 +0300 Subject: [PATCH] Fix hashadd --- src/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hash.c b/src/hash.c index aa482e4..934918b 100644 --- a/src/hash.c +++ b/src/hash.c @@ -142,7 +142,7 @@ void hashadd(struct hashtable *ht, const void* name, const void* value, time_t e index = hashindex(ht, hash); for(hep = ht->ihashtable + index; (he = *hep)!=0; ){ - if(hvalue(ht,he)->expires < conf.time || !memcmp(hvalue(ht,hen)->hash, hvalue(ht,he)->hash, HASH_SIZE)) { + if(hvalue(ht,he)->expires < conf.time || !memcmp(hash, hvalue(ht,he)->hash, HASH_SIZE)) { (*hep) = hvalue(ht,he)->inext; hvalue(ht,he)->expires = 0; hvalue(ht,he)->inext = ht->ihashempty;