mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:59:59 -04:00
simplified by using dns_acl_any()
This commit is contained in:
parent
f5862b6f22
commit
b4b47bf187
1 changed files with 2 additions and 9 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: controlconf.c,v 1.22 2001/08/03 18:28:48 gson Exp $ */
|
||||
/* $Id: controlconf.c,v 1.23 2001/08/03 20:05:42 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -968,14 +968,7 @@ add_listener(ns_controls_t *cp, controllistener_t **listenerp,
|
|||
result = ns_acl_fromconfig(allow, config, aclconfctx,
|
||||
mctx, &new_acl);
|
||||
} else {
|
||||
/* allow { any; } */
|
||||
result = dns_acl_create(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(mctx, &new_acl);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue