diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-12-18 19:09:27 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-12-18 19:09:27 +0100 |
commit | 1069048089d12462ccc1ce273802ef517433aff5 (patch) | |
tree | 06f8588a6d705df3ef9b6365c4f1679f79a304e6 /src/resolve | |
parent | d98e5504208e5435584d3ee44fd1ab1629920e7a (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.
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dns-cache.c | 2 |
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; |