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:
parent
64fa945ab6
commit
147b0c9ba7
@ -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 <config.h>
|
||||
|
||||
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user