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:
Lennart Poettering 2015-12-18 19:09:27 +01:00
parent d98e550420
commit 1069048089

View file

@ -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;