]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2784. [bug] TC was not always being set when required glue was
authorMark Andrews <marka@isc.org>
Tue, 24 Nov 2009 03:24:42 +0000 (03:24 +0000)
committerMark Andrews <marka@isc.org>
Tue, 24 Nov 2009 03:24:42 +0000 (03:24 +0000)
                        dropped. [RT #234186]

CHANGES
lib/dns/message.c

diff --git a/CHANGES b/CHANGES
index f57123f1f4045675ef84701e506cbfa6f487118f..98b8e82c513facf37cd17639c21b897c2eecac42 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2784.  [bug]           TC was not always being set when required glue was
+                       dropped. [RT #234186]
+
 2783.  [func]          Return minimal responses to EDNS/UDP queries with a UDP
                        buffer size of 512 or less.  [RT #20654]
 
index 7c2ab35948c68ad0bc94d942badc607cf5c7bf45..5f50755a0f8b9507bc852e7d77908afd705c416e 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: message.c,v 1.237.110.8 2009/01/19 23:47:02 tbox Exp $ */
+/* $Id: message.c,v 1.237.110.9 2009/11/24 03:24:42 marka Exp $ */
 
 /*! \file */
 
@@ -1886,6 +1886,8 @@ dns_message_rendersection(dns_message_t *msg, dns_section_t sectionid,
                                msg->counts[sectionid] += total;
                                return (result);
                        }
+                       if (result == ISC_R_NOSPACE)
+                               msg->flags |= DNS_MESSAGEFLAG_TC;
                        if (result != ISC_R_SUCCESS) {
                                INSIST(st.used < 65536);
                                dns_compress_rollback(msg->cctx,