]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] turn on minimal responses for CDS/CDNSKEY
authorEvan Hunt <each@isc.org>
Fri, 25 Aug 2017 20:31:53 +0000 (13:31 -0700)
committerEvan Hunt <each@isc.org>
Fri, 25 Aug 2017 20:31:53 +0000 (13:31 -0700)
4678. [cleanup] Turn on minimal responses for CDNSKEY and CDS in
addition to DNSKEY and DS. Thanks to Tony Finch.
[RT #45690]

CHANGES
bin/named/query.c

diff --git a/CHANGES b/CHANGES
index d927bb1b6d94b57d7c0bb3ff21949b5f66580516..7f201416d83a87c6ffc27183bfd91b3638836a67 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+4678.  [cleanup]       Turn on minimal responses for CDNSKEY and CDS in
+                       addition to DNSKEY and DS. Thanks to Tony Finch.
+                       [RT #45690]
+
 4688.  [protocol]      Check and display EDNS KEY TAG options (RFC 8145) in
                        messages. [RT #44804]
 
index b55b21b13a23b5283bb8e1c69e574b0e62164375..5b2b7a8f09c396c8e1ef553f324d83a1ee0726d5 100644 (file)
@@ -9513,11 +9513,14 @@ ns_query_start(ns_client_t *client) {
        }
 
        /*
-        * Turn on minimal response for DNSKEY and DS queries.
+        * Turn on minimal response for (C)DNSKEY and (C)DS queries.
         */
-       if (qtype == dns_rdatatype_dnskey || qtype == dns_rdatatype_ds)
+       if (qtype == dns_rdatatype_dnskey || qtype == dns_rdatatype_ds ||
+           qtype == dns_rdatatype_cdnskey || qtype == dns_rdatatype_cds)
+       {
                client->query.attributes |= (NS_QUERYATTR_NOAUTHORITY |
                                             NS_QUERYATTR_NOADDITIONAL);
+       }
 
        /*
         * Maybe turn on minimal responses for ANY queries.