2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

2784. [bug] TC was not always being set when required glue was

dropped. [RT #234186]
This commit is contained in:
Mark Andrews 2009-11-24 03:20:02 +00:00
parent dc92707066
commit 9dd2ee95f1
2 changed files with 6 additions and 1 deletions

View File

@ -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 2783. [func] Return minimal responses to EDNS/UDP queries with a UDP
buffer size of 512 or less. [RT #20654] buffer size of 512 or less. [RT #20654]

View File

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: message.c,v 1.248 2009/10/26 23:14:54 each Exp $ */ /* $Id: message.c,v 1.249 2009/11/24 03:20:02 marka Exp $ */
/*! \file */ /*! \file */
@ -1918,6 +1918,8 @@ dns_message_rendersection(dns_message_t *msg, dns_section_t sectionid,
msg->counts[sectionid] += total; msg->counts[sectionid] += total;
return (result); return (result);
} }
if (result == ISC_R_NOSPACE)
msg->flags |= DNS_MESSAGEFLAG_TC;
if (result != ISC_R_SUCCESS) { if (result != ISC_R_SUCCESS) {
INSIST(st.used < 65536); INSIST(st.used < 65536);
dns_compress_rollback(msg->cctx, dns_compress_rollback(msg->cctx,