Fix: hashstable item is added with wrong index on table grow

This commit is contained in:
Vladimir Dubrovin 2026-07-13 15:30:49 +03:00
parent c893e866bd
commit 66ee250e5c

View File

@ -197,6 +197,7 @@ void hashadd(struct hashtable *ht, void* name, void* value, time_t expires){
if(!ht->ihashempty){ if(!ht->ihashempty){
hashgrow(ht); hashgrow(ht);
index = hashindex(ht, ht->tablesize, hash);
} }
if(ht->ihashempty){ if(ht->ihashempty){