summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-18 19:09:27 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-18 19:09:27 +0100
commit1069048089d12462ccc1ce273802ef517433aff5 (patch)
tree06f8588a6d705df3ef9b6365c4f1679f79a304e6
parentd98e5504208e5435584d3ee44fd1ab1629920e7a (diff)
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.
-rw-r--r--src/resolve/resolved-dns-cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-cache.c b/src/resolve/resolved-dns-cache.c
index fe74f0f83f..31325ecc88 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;