mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
simplified by using dns_acl_any()
This commit is contained in:
parent
3dfc806ddf
commit
1bcdcce64b
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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 <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -913,13 +913,7 @@ update_listener(ns_controls_t *cp,
|
|||||||
result = ns_acl_fromconfig(allow, config, aclconfctx,
|
result = ns_acl_fromconfig(allow, config, aclconfctx,
|
||||||
listener->mctx, &new_acl);
|
listener->mctx, &new_acl);
|
||||||
} else {
|
} else {
|
||||||
/* allow { any; } */
|
result = dns_acl_any(listener->mctx, &new_acl);
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == ISC_R_SUCCESS) {
|
if (result == ISC_R_SUCCESS) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user