]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: don't call dns_cache_remove() from dns_cache_put_negative()
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 18:09:27 +0000 (19:09 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 18:09:27 +0000 (19:09 +0100)
We call it anyway as one of the first calls in dns_cache_put(), hence
there's no reason to do this multiple times.

src/resolve/resolved-dns-cache.c

index fe74f0f83f39eeebff2d5b0ed0b5e4ef1154402d..31325ecc88e6f7e5f9feb113188eecdc95d37fe0 100644 (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;