mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Handle a missing zone when reloading a catalog zone
Previously a missing/deleted zone which was referenced by a catalog zone was causing a crash when doing a reload. This commit will make `named` to ignore the fact that the zone is missing, and make sure to restore it later on.
This commit is contained in:
@@ -3061,7 +3061,9 @@ configure_catz_zone(dns_view_t *view, const cfg_obj_t *config,
|
||||
name = dns_catz_entry_getname(entry);
|
||||
|
||||
tresult = dns_view_findzone(pview, name, &dnszone);
|
||||
RUNTIME_CHECK(tresult == ISC_R_SUCCESS);
|
||||
if (tresult != ISC_R_SUCCESS) {
|
||||
continue;
|
||||
}
|
||||
|
||||
dns_zone_setview(dnszone, view);
|
||||
dns_view_addzone(view, dnszone);
|
||||
|
Reference in New Issue
Block a user