From: Mark Andrews Date: Mon, 21 Jul 2003 01:11:29 +0000 (+0000) Subject: Only fall back to TCP for slave zones if UDP refresh queries fail. X-Git-Tag: v9.2.3rc1~24^2~11 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=afbb7b15aeeef907296aa41890ac17f64c1832ed;p=thirdparty%2Fbind9.git Only fall back to TCP for slave zones if UDP refresh queries fail. [RT #8253] --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 08bf5e177a9..fd17ea88e18 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 "