mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
2022. [bug] If dnssec validation is disabled only assert CD if
CD was requested. [RT #16037] 2021. [bug] dnssec-enable no; triggered a REQUIRE. [RT #16037]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: server.c,v 1.463 2006/05/03 01:54:53 marka Exp $ */
|
||||
/* $Id: server.c,v 1.464 2006/05/18 02:00:11 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -1545,19 +1545,13 @@ configure_view(dns_view_t *view, const cfg_obj_t *config,
|
||||
* For now, there is only one kind of trusted keys, the
|
||||
* "security roots".
|
||||
*/
|
||||
if (view->enablednssec) {
|
||||
CHECK(configure_view_dnsseckeys(vconfig, config, mctx,
|
||||
&view->secroots));
|
||||
dns_resolver_resetmustbesecure(view->resolver);
|
||||
obj = NULL;
|
||||
result = ns_config_get(maps, "dnssec-must-be-secure", &obj);
|
||||
if (result == ISC_R_SUCCESS)
|
||||
CHECK(mustbesecure(obj, view->resolver));
|
||||
} else {
|
||||
if (view->secroots != NULL)
|
||||
dns_keytable_detach(&view->secroots);
|
||||
dns_resolver_resetmustbesecure(view->resolver);
|
||||
}
|
||||
CHECK(configure_view_dnsseckeys(vconfig, config, mctx,
|
||||
&view->secroots));
|
||||
dns_resolver_resetmustbesecure(view->resolver);
|
||||
obj = NULL;
|
||||
result = ns_config_get(maps, "dnssec-must-be-secure", &obj);
|
||||
if (result == ISC_R_SUCCESS)
|
||||
CHECK(mustbesecure(obj, view->resolver));
|
||||
|
||||
obj = NULL;
|
||||
result = ns_config_get(maps, "max-cache-ttl", &obj);
|
||||
|
Reference in New Issue
Block a user