]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
dns_view_issecuredomain: check that view->secroots_priv is non NULL before calling...
authorMark Andrews <marka@isc.org>
Tue, 30 Aug 2011 21:14:50 +0000 (21:14 +0000)
committerMark Andrews <marka@isc.org>
Tue, 30 Aug 2011 21:14:50 +0000 (21:14 +0000)
lib/dns/view.c

index e2a9b88981d78554984a0840a41f5fb9ed5768ad..e61e91e414d0a53e3175d5799509ce02e0c14d02 100644 (file)
@@ -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));
 }