]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: always consider NSEC/NSEC3 RRs as "primary"
authorLennart Poettering <lennart@poettering.net>
Mon, 14 Dec 2015 20:22:40 +0000 (21:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Dec 2015 20:28:39 +0000 (21:28 +0100)
It's not OK to drop these for our proof of non-existance checks.

src/resolve/resolved-dns-transaction.c

index 82b49c1440570caaed7a29d062b991059dff3987..045627340b6528f77f369fe2c3069295cbe1f553 100644 (file)
@@ -1288,7 +1288,10 @@ static int dns_transaction_is_primary_response(DnsTransaction *t, DnsResourceRec
 
         /* Check if the specified RR is the "primary" response,
          * i.e. either matches the question precisely or is a
-         * CNAME/DNAME for it */
+         * CNAME/DNAME for it, or is any kind of NSEC/NSEC3 RR */
+
+        if (IN_SET(rr->key->type, DNS_TYPE_NSEC, DNS_TYPE_NSEC3))
+                return 1;
 
         r = dns_resource_key_match_rr(t->key, rr, NULL);
         if (r != 0)