mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 12:13:20 -04:00
Non empty 'catalog-zones' implies that 'allow-new-zones' is true
This condition in catalog zone processing functions is checked only for sanity, so there is no meaning for a log message that normally shouldn't be ever logged. (cherry picked from commit 0b3c8ee55e6cda1f2de35aa15f6a4d82d072c309)
This commit is contained in:
parent
4379141fe4
commit
2e6e4cdb55
1 changed files with 10 additions and 11 deletions
|
|
@ -2682,13 +2682,13 @@ catz_addmodzone_taskaction(isc_task_t *task, isc_event_t *event0) {
|
|||
ns_cfgctx_t *cfg;
|
||||
dns_zone_t *zone = NULL;
|
||||
|
||||
/*
|
||||
* A non-empty 'catalog-zones' statement implies that 'allow-new-zones'
|
||||
* is true, so this is expected to be non-NULL.
|
||||
*/
|
||||
cfg = (ns_cfgctx_t *)ev->view->new_zone_config;
|
||||
if (cfg == NULL) {
|
||||
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
|
||||
NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR,
|
||||
"catz: allow-new-zones statement missing from "
|
||||
"config; cannot add zone from the catalog");
|
||||
goto cleanup;
|
||||
CHECK(ISC_R_FAILURE);
|
||||
}
|
||||
|
||||
name = dns_catz_entry_getname(ev->entry);
|
||||
|
|
@ -3058,14 +3058,13 @@ catz_reconfigure(dns_catz_entry_t *entry, dns_view_t *view,
|
|||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* A non-empty 'catalog-zones' statement implies that 'allow-new-zones'
|
||||
* is true, so this is expected to be non-NULL.
|
||||
*/
|
||||
cfg = (ns_cfgctx_t *)view->new_zone_config;
|
||||
if (cfg == NULL) {
|
||||
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
|
||||
NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR,
|
||||
"catz_reconfigure: allow-new-zones statement "
|
||||
"missing from config; cannot reconfigure a "
|
||||
"member zone");
|
||||
goto cleanup;
|
||||
CHECK(ISC_R_FAILURE);
|
||||
}
|
||||
|
||||
result = dns_catz_generate_zonecfg(data->catz, entry, &confbuf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue