2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

The server would crash trying to unload an unloaded zone if the initial

AXFR had more than maxnames records.
This commit is contained in:
Brian Wellington 2000-08-10 17:11:23 +00:00
parent 64fa945ab6
commit 147b0c9ba7

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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 <config.h> #include <config.h>
@ -3997,8 +3997,10 @@ zone_xfrdone(dns_zone_t *zone, isc_result_t result) {
zone_log(zone, me, ISC_LOG_WARNING, zone_log(zone, me, ISC_LOG_WARNING,
"transfer aborted, zone unloaded", "transfer aborted, zone unloaded",
dns_result_totext(result)); dns_result_totext(result));
zone_unload(zone); if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED)) {
zone_deletefile(zone); zone_unload(zone);
zone_deletefile(zone);
}
break; break;
#endif /* NOMINUM_PUBLIC */ #endif /* NOMINUM_PUBLIC */