summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjvdias <jvdias@fedoraproject.org>2005-08-17 02:28:17 +0000
committerjvdias <jvdias@fedoraproject.org>2005-08-17 02:28:17 +0000
commit9992df433543a7aecb594ed8852ea7bb77657959 (patch)
treecbf707b883b70b9f28e1a9a7a704c7686bb6186c
parent4206716eadb16bae923e3abb608a4681b7badca1 (diff)
downloadbind-9992df433543a7aecb594ed8852ea7bb77657959.tar.gz
bind-9992df433543a7aecb594ed8852ea7bb77657959.tar.xz
bind-9992df433543a7aecb594ed8852ea7bb77657959.zip
further 160914 fix: test for RD=1 and RA=0 also as suggested by ISC and for
ARCOUNT=0 as does glibc
-rw-r--r--bind-9.3.1-next_server_on_referral.patch12
1 files changed, 7 insertions, 5 deletions
diff --git a/bind-9.3.1-next_server_on_referral.patch b/bind-9.3.1-next_server_on_referral.patch
index 90ca474..bcf7b42 100644
--- a/bind-9.3.1-next_server_on_referral.patch
+++ b/bind-9.3.1-next_server_on_referral.patch
@@ -1,6 +1,6 @@
---- bind-9.3.1/bin/dig/dighost.c.next_server_on_referral 2005-07-07 13:19:29.000000000 -0400
-+++ bind-9.3.1/bin/dig/dighost.c 2005-07-07 14:30:38.000000000 -0400
-@@ -2765,7 +2765,15 @@
+--- bind-9.3.1/bin/dig/dighost.c.next_server_on_referral 2005-08-16 16:27:33.000000000 -0400
++++ bind-9.3.1/bin/dig/dighost.c 2005-08-16 16:27:49.000000000 -0400
+@@ -2765,7 +2765,17 @@
UNLOCK_LOOKUP;
return;
}
@@ -9,7 +9,9 @@
+ &&( (msg->rcode == dns_rcode_servfail)
+ ||( (msg->rcode == dns_rcode_noerror)
+ &&(msg->counts[DNS_SECTION_ANSWER] == 0)
-+ &&((msg->flags & (DNS_MESSAGEFLAG_AA | DNS_MESSAGEFLAG_RA)) == 0)
++ &&(msg->counts[DNS_SECTION_ADDITIONAL] == 0)
++ &&((msg->flags & DNS_MESSAGEFLAG_RD) == DNS_MESSAGEFLAG_RD)
++ &&((msg->flags & (DNS_MESSAGEFLAG_RA | DNS_MESSAGEFLAG_AA)) == 0)
+ )
+ )
+ )
@@ -17,7 +19,7 @@
dig_query_t *next = ISC_LIST_NEXT(query, link);
if (l->current_query == query)
l->current_query = NULL;
-@@ -2783,9 +2791,11 @@
+@@ -2783,9 +2793,11 @@
*/
if ((ISC_LIST_HEAD(l->q) != query) ||
(ISC_LIST_NEXT(query, link) != NULL)) {