From afbb7b15aeeef907296aa41890ac17f64c1832ed Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 21 Jul 2003 01:11:29 +0000 Subject: [PATCH] Only fall back to TCP for slave zones if UDP refresh queries fail. [RT #8253] --- 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 08bf5e177a..fd17ea88e1 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.394 2003/07/18 02:54:23 marka Exp $ */ +/* $Id: zone.c,v 1.395 2003/07/21 01:11:29 marka Exp $ */ #include @@ -3402,8 +3402,9 @@ refresh_callback(isc_task_t *task, isc_event_t *event) { "refresh: retry limit for " "master %s exceeded (source %s)", master, source); - /* Try with TCP. */ - goto tcp_transfer; + /* Try with slave with TCP. */ + if (zone->type == dns_zone_slave) + goto tcp_transfer; } else dns_zone_log(zone, ISC_LOG_INFO, "refresh: failure trying master "