summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {