From: Mark Andrews Date: Tue, 30 Aug 2011 21:14:50 +0000 (+0000) Subject: dns_view_issecuredomain: check that view->secroots_priv is non NULL before calling... X-Git-Tag: v9.9.0a2~1^2~73 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=81bbd645c7635ea55735a5ceda26e41728f25d90;p=thirdparty%2Fbind9.git dns_view_issecuredomain: check that view->secroots_priv is non NULL before calling dns_keytable_issecuredomaiani otherwise return ISC_R_NOTFOUND --- diff --git a/lib/dns/view.c b/lib/dns/view.c index e2a9b88981d..e61e91e414d 100644 --- a/lib/dns/view.c +++ b/lib/dns/view.c @@ -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)); }