From: Lennart Poettering Date: Fri, 18 Dec 2015 18:09:27 +0000 (+0100) Subject: resolved: don't call dns_cache_remove() from dns_cache_put_negative() X-Git-Tag: v229~201^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1069048089d12462ccc1ce273802ef517433aff5;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/resolve/resolved-dns-cache.c b/src/resolve/resolved-dns-cache.c index fe74f0f83f3..31325ecc88e 100644 --- a/src/resolve/resolved-dns-cache.c +++ b/src/resolve/resolved-dns-cache.c @@ -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;