mirror of
https://github.com/3proxy/3proxy.git
synced 2026-10-25 09:32:02 +00:00
Fix hashadd
This commit is contained in:
parent
7102afe856
commit
d9b1493260
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue