]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2110. [bug] "minimal-response yes;" interacted badly with BIND 8
authorMark Andrews <marka@isc.org>
Thu, 7 Dec 2006 04:38:56 +0000 (04:38 +0000)
committerMark Andrews <marka@isc.org>
Thu, 7 Dec 2006 04:38:56 +0000 (04:38 +0000)
                        priming queries. [RT #16491]

CHANGES
bin/named/query.c

diff --git a/CHANGES b/CHANGES
index c74a93e030a9a01209127d62b7661f170598afca..09bc725d0323b125a0d9c5ac08ac184fc275a241 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2110.  [bug]           "minimal-response yes;" interacted badly with BIND 8
+                       priming queries. [RT #16491]
+
 2109.  [port]          libbind: silence aix 5.3 compiler warnings. [RT #16502]
 
 2108.  [func]          DHCID support. [RT #16456]
index f3579f47b9987067625628913f07bec333001a05..112d9dbd5ddff34956f72751dad73ff3b36e8b61 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: query.c,v 1.289 2006/08/31 03:56:36 marka Exp $ */
+/* $Id: query.c,v 1.290 2006/12/07 04:38:56 marka Exp $ */
 
 /*! \file */
 
@@ -4244,6 +4244,13 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
                        noqname = rdataset;
                else
                        noqname = NULL;
+               /*
+                * BIND 8 priming queries need the additional section.
+                */
+               if (is_zone && qtype == dns_rdatatype_ns &&
+                   dns_name_equal(client->query.qname, dns_rootname))
+                       client->query.attributes &= ~NS_QUERYATTR_NOADDITIONAL;
+
                query_addrrset(client, &fname, &rdataset, sigrdatasetp, dbuf,
                               DNS_SECTION_ANSWER);
                if (noqname != NULL)