2516. [bug] glue sort for responses was performed even when not

needed. [RT #19039]
This commit is contained in:
Tatuya JINMEI 神明達哉
2008-12-29 23:50:35 +00:00
parent a944881a26
commit 7170458302
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -1,3 +1,6 @@
2516. [bug] glue sort for responses was performed even when not
needed. [RT #19039]
2514. [bug] dig/host failed with -4 or -6 when resolv.conf contains
a nameserver of the excluded address family.
[RT #18848]
+2 -2
View File
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: query.c,v 1.313 2008/11/03 23:57:22 marka Exp $ */
/* $Id: query.c,v 1.313.20.1 2008/12/29 23:50:35 jinmei Exp $ */
/*! \file */
@@ -4856,7 +4856,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
* is in the glue sort it to the start of the additional
* section.
*/
if (client->message->counts[DNS_SECTION_ANSWER] == 0 &&
if (ISC_LIST_EMPTY(client->message->sections[DNS_SECTION_ANSWER]) &&
client->message->rcode == dns_rcode_noerror &&
(qtype == dns_rdatatype_a || qtype == dns_rdatatype_aaaa))
answer_in_glue(client, qtype);