}
}
- maps[i++] = named_g_defaultoptions;
maps[i] = NULL;
dns_view_initsecroots(view);
"using built-in root key for view %s",
view->name);
- (void)cfg_map_get(named_g_defaultconfig,
- "trust-anchors", &builtin_keys);
+ (void)cfg_map_get(config, "trust-anchors",
+ &builtin_keys);
}
if (builtin_keys != NULL) {
if (options != NULL) {
maps[i++] = options;
}
- maps[i++] = named_g_defaultoptions;
if (config != NULL) {
cfgmaps[j++] = config;
if (result == ISC_R_SUCCESS) {
maps[i++] = options;
}
- maps[i++] = named_g_defaultoptions;
maps[i] = NULL;
result = named_config_get(maps, "allow-new-zones", &nz);
if (result == ISC_R_SUCCESS) {
maps[i++] = options;
}
- maps[i++] = named_g_defaultoptions;
maps[i] = NULL;
/* Create the ACL configuration context */
ISC_LOG_DEBUG(1), "apply_configuration: %s",
isc_result_totext(result));
+ cfg_obj_detach(&config);
return result;
}
static isc_result_t
load_configuration(named_server_t *server, bool first_time) {
isc_result_t result;
- cfg_obj_t *config = NULL, *bindkeys = NULL;
+ cfg_obj_t *config = NULL, *bindkeys = NULL, *effective = NULL;
isc_log_write(NAMED_LOGCATEGORY_GENERAL, NAMED_LOGMODULE_SERVER,
ISC_LOG_DEBUG(1), "load_configuration");
}
}
- result = apply_configuration(config, bindkeys, server, first_time);
+ effective = cfg_effective_config(config, named_g_defaultconfig);
+ result = apply_configuration(effective, bindkeys, server, first_time);
cleanup:
if (bindkeys != NULL) {
maps[i++] = options;
}
}
- maps[i++] = named_g_defaultoptions;
maps[i] = NULL;
(void)named_config_get(maps, aclname, &aclobj);
}
nodefault[i] = NULL;
- maps[i++] = named_g_defaultoptions;
maps[i] = NULL;
if (vconfig != NULL) {
dns_name_equal(dns_zone_getorigin(zone), dns_rootname))
{
result = named_config_getremotesdef(
- named_g_defaultconfig, "remote-servers",
+ config, "remote-servers",
DEFAULT_IANA_ROOT_ZONE_PRIMARIES, &obj);
CHECK(result);
}