summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-18 19:46:27 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-18 19:47:24 +0100
commit98b6be778400636bb2f8c155d3079d9396d90974 (patch)
tree25fcb41c8b17524721aaa8c345d7a7ccff03a927
parent39963f1123b3c192dd72e88d5403e4d39deabcba (diff)
resolved: merge two comments
-rw-r--r--src/resolve/resolved-dns-cache.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/resolve/resolved-dns-cache.c b/src/resolve/resolved-dns-cache.c
index 0aacc74e5e..f50d780ebb 100644
--- a/src/resolve/resolved-dns-cache.c
+++ b/src/resolve/resolved-dns-cache.c
@@ -424,13 +424,12 @@ static int dns_cache_put_negative(
assert(key);
assert(owner_address);
- /* Never cache pseudo RR keys */
+ /* Never cache pseudo RR keys. DNS_TYPE_ANY is particularly
+ * important to filter out as we use this as a pseudo-type for
+ * NXDOMAIN entries */
if (dns_class_is_pseudo(key->class))
return 0;
if (dns_type_is_pseudo(key->type))
- /* DNS_TYPE_ANY is particularly important to filter
- * out as we use this as a pseudo-type for NXDOMAIN
- * entries */
return 0;
if (soa_ttl <= 0) {