mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Fix catalog zone reconfiguration crash
The following scenario triggers a "named" crash: 1. Configure a catalog zone. 2. Start "named". 3. Comment out the "catalog-zone" clause. 4. Run `rndc reconfig`. 5. Uncomment the "catalog-zone" clause. 6. Run `rndc reconfig` again. Implement the required cleanup of the in-memory catalog zone during the first `rndc reconfig`, so that the second `rndc reconfig` could find it in an expected state.
This commit is contained in:
@@ -6657,6 +6657,8 @@ configure_zone(const cfg_obj_t *config, const cfg_obj_t *zconfig,
|
||||
|
||||
if (zone_is_catz) {
|
||||
dns_zone_catz_enable(zone, view->catzs);
|
||||
} else if (dns_zone_catz_is_enabled(zone)) {
|
||||
dns_zone_catz_disable(zone);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user