From 147b0c9ba79bc3c95edac917b407cd03e8a97908 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 10 Aug 2000 17:11:23 +0000 Subject: [PATCH] The server would crash trying to unload an unloaded zone if the initial AXFR had more than maxnames records. --- lib/dns/zone.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 9833ac4950..0b5655d77b 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.178 2000/08/10 00:53:33 gson Exp $ */ +/* $Id: zone.c,v 1.179 2000/08/10 17:11:23 bwelling Exp $ */ #include @@ -3997,8 +3997,10 @@ zone_xfrdone(dns_zone_t *zone, isc_result_t result) { zone_log(zone, me, ISC_LOG_WARNING, "transfer aborted, zone unloaded", dns_result_totext(result)); - zone_unload(zone); - zone_deletefile(zone); + if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED)) { + zone_unload(zone); + zone_deletefile(zone); + } break; #endif /* NOMINUM_PUBLIC */