mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 17:33:08 +00:00
Update expiry time on each add
This commit is contained in:
parent
1a29082fea
commit
9669cda2b2
@ -46,8 +46,10 @@ static void add_item(char *key, char *value){
|
||||
int c=strcmp(item->key, key);
|
||||
if (c==0){
|
||||
c=strcmp(item->value, value);
|
||||
if (c==0)
|
||||
if (c==0){
|
||||
item->expires = gettime_ms()+1200000;
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (c<0){
|
||||
last_ptr = &item->_left;
|
||||
|
Loading…
x
Reference in New Issue
Block a user