]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Only fall back to TCP for slave zones if UDP refresh queries fail.
authorMark Andrews <marka@isc.org>
Mon, 21 Jul 2003 01:11:29 +0000 (01:11 +0000)
committerMark Andrews <marka@isc.org>
Mon, 21 Jul 2003 01:11:29 +0000 (01:11 +0000)
[RT #8253]

lib/dns/zone.c

index 08bf5e177a9d7ed86d46aaae13accc31a4611d5d..fd17ea88e18bb417a97e240a7a14c190adefed91 100644 (file)
@@ -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 <config.h>
 
@@ -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 "