2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 23:55:27 +00:00

configuring zone acl from default view caused assertion failure

This commit is contained in:
Andreas Gustafsson
2000-04-07 00:51:32 +00:00
parent a672bfbee4
commit 2e91b1f3d4
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ configure_zone_acl(dns_c_zone_t *czone, dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_c_ipmatchlist_t *cacl; dns_c_ipmatchlist_t *cacl;
dns_acl_t *dacl = NULL; dns_acl_t *dacl = NULL;
result = (*getcacl)(czone, &cacl); result = (*getcacl)(czone, &cacl);
if (result == ISC_R_NOTFOUND && getviewcacl != NULL) { if (result == ISC_R_NOTFOUND && getviewcacl != NULL && cview != NULL) {
result = (*getviewcacl)(cview, &cacl); result = (*getviewcacl)(cview, &cacl);
} }
if (result == ISC_R_NOTFOUND && getglobalcacl != NULL) { if (result == ISC_R_NOTFOUND && getglobalcacl != NULL) {

View File

@@ -49,7 +49,7 @@ configure_zone_acl(dns_c_zone_t *czone, dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_c_ipmatchlist_t *cacl; dns_c_ipmatchlist_t *cacl;
dns_acl_t *dacl = NULL; dns_acl_t *dacl = NULL;
result = (*getcacl)(czone, &cacl); result = (*getcacl)(czone, &cacl);
if (result == ISC_R_NOTFOUND && getviewcacl != NULL) { if (result == ISC_R_NOTFOUND && getviewcacl != NULL && cview != NULL) {
result = (*getviewcacl)(cview, &cacl); result = (*getviewcacl)(cview, &cacl);
} }
if (result == ISC_R_NOTFOUND && getglobalcacl != NULL) { if (result == ISC_R_NOTFOUND && getglobalcacl != NULL) {