mirror of
https://github.com/3proxy/3proxy.git
synced 2026-07-16 17:30:11 +08:00
Fix: hashstable item is added with wrong index on table grow
This commit is contained in:
parent
c893e866bd
commit
66ee250e5c
@ -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){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user