resolved: don't call dns_cache_remove() from dns_cache_put_negative()
We call it anyway as one of the first calls in dns_cache_put(), hence there's no reason to do this multiple times.
This commit is contained in:
parent
d98e550420
commit
1069048089
|
@ -367,8 +367,6 @@ static int dns_cache_put_negative(
|
|||
assert(key);
|
||||
assert(owner_address);
|
||||
|
||||
dns_cache_remove(c, key);
|
||||
|
||||
/* Never cache pseudo RR keys */
|
||||
if (dns_class_is_pseudo(key->class))
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue