From 1bcdcce64b5b0f66a23fb784b442d38a134581c8 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Fri, 3 Aug 2001 18:28:48 +0000 Subject: [PATCH] simplified by using dns_acl_any() --- bin/named/controlconf.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/bin/named/controlconf.c b/bin/named/controlconf.c index ed9e24b0fe..c28defabb0 100644 --- a/bin/named/controlconf.c +++ b/bin/named/controlconf.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: controlconf.c,v 1.21 2001/08/03 18:12:05 bwelling Exp $ */ +/* $Id: controlconf.c,v 1.22 2001/08/03 18:28:48 gson Exp $ */ #include @@ -913,13 +913,7 @@ update_listener(ns_controls_t *cp, result = ns_acl_fromconfig(allow, config, aclconfctx, listener->mctx, &new_acl); } else { - /* allow { any; } */ - result = dns_acl_create(listener->mctx, 1, &new_acl); - if (result == ISC_R_SUCCESS) { - new_acl->elements->type = dns_aclelementtype_any; - new_acl->elements->negative = ISC_FALSE; - new_acl->length = 1; - } + result = dns_acl_any(listener->mctx, &new_acl); } if (result == ISC_R_SUCCESS) {