From 81bbd645c7635ea55735a5ceda26e41728f25d90 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 30 Aug 2011 21:14:50 +0000 Subject: [PATCH] dns_view_issecuredomain: check that view->secroots_priv is non NULL before calling dns_keytable_issecuredomaiani otherwise return ISC_R_NOTFOUND --- lib/dns/view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/dns/view.c b/lib/dns/view.c index e2a9b88981..e61e91e414 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)); }