mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-23 16:10:27 +00:00
Fix: hashstable item is added with wrong index on table grow
This commit is contained in:
parent
c893e866bd
commit
66ee250e5c
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue