]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2912. [func] Windows clients don't like UPDATE responses that clear
authorMark Andrews <marka@isc.org>
Thu, 3 Jun 2010 05:27:59 +0000 (05:27 +0000)
committerMark Andrews <marka@isc.org>
Thu, 3 Jun 2010 05:27:59 +0000 (05:27 +0000)
                        the zone section. [RT #20986]

CHANGES
lib/dns/message.c

diff --git a/CHANGES b/CHANGES
index 10a784668906c4cf4a1d2403b0543edd6c25ae13..b782fccaaeef8cbb46f472b7a1a8f1276983e147 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2912.  [func]          Windows clients don't like UPDATE responses that clear
+                       the zone section. [RT #20986]
+
 2911.  [bug]           dnssec-signzone didn't handle out of zone records well.
                        [RT #21367]
 
index 51f41985f3c36bad00f499a36260c147510e0d68..5e06ffb1017383ba677e4948696c8df441ee00bc 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: message.c,v 1.249.10.3 2010/05/13 00:42:26 marka Exp $ */
+/* $Id: message.c,v 1.249.10.4 2010/06/03 05:27:59 marka Exp $ */
 
 /*! \file */
 
@@ -2527,7 +2527,9 @@ dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section) {
        if (msg->opcode != dns_opcode_query &&
            msg->opcode != dns_opcode_notify)
                want_question_section = ISC_FALSE;
-       if (want_question_section) {
+       if (msg->opcode == dns_opcode_update)
+               first_section = DNS_SECTION_ADDITIONAL;
+       else if (want_question_section) {
                if (!msg->question_ok)
                        return (DNS_R_FORMERR);
                first_section = DNS_SECTION_ANSWER;