From fbc27dfec6fb5a6b5cf4bf03091cb38d675327ba Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 24 Sep 2003 01:03:37 +0000 Subject: [PATCH] don't fallback to tcp on refused for stub zones. [rt#8945] --- lib/dns/zone.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index aa2491ee0f..b0e8b5adca 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.397 2003/09/11 01:49:16 marka Exp $ */ +/* $Id: zone.c,v 1.398 2003/09/24 01:03:37 marka Exp $ */ #include @@ -3363,7 +3363,7 @@ refresh_callback(isc_task_t *task, isc_event_t *event) { isc_time_t now; char master[ISC_SOCKADDR_FORMATSIZE]; char source[ISC_SOCKADDR_FORMATSIZE]; - dns_rdataset_t *rdataset; + dns_rdataset_t *rdataset = NULL; dns_rdata_t rdata = DNS_RDATA_INIT; dns_rdata_soa_t soa; isc_result_t result; @@ -3455,7 +3455,8 @@ refresh_callback(isc_task_t *task, isc_event_t *event) { /* * Perhaps AXFR/IXFR is allowed even if SOA queries arn't. */ - if (msg->rcode == dns_rcode_refused) + if (msg->rcode == dns_rcode_refused && + zone->type == dns_zone_slave) goto tcp_transfer; goto next_master; }