mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
dns_view_issecuredomain: check that view->secroots_priv is non NULL before calling dns_keytable_issecuredomaiani otherwise return ISC_R_NOTFOUND
This commit is contained in:
parent
91e0d41c70
commit
81bbd645c7
@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: view.c,v 1.181 2011/08/02 20:36:12 each Exp $ */
|
||||
/* $Id: view.c,v 1.182 2011/08/30 21:14:50 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@ -1728,6 +1728,9 @@ isc_result_t
|
||||
dns_view_issecuredomain(dns_view_t *view, dns_name_t *name,
|
||||
isc_boolean_t *secure_domain) {
|
||||
REQUIRE(DNS_VIEW_VALID(view));
|
||||
|
||||
if (view->secroots_priv == NULL)
|
||||
return (ISC_R_NOTFOUND);
|
||||
return (dns_keytable_issecuredomain(view->secroots_priv, name,
|
||||
secure_domain));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user