mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Refactor dns_{acl,aclenv}_create to return void
The dns_{acl,aclenv}_create() can't fail, so change it to return void.
This commit is contained in:
committed by
Ondřej Surý
parent
f5b0bd9b1b
commit
b3a8f0048f
@@ -3878,10 +3878,7 @@ create_mapped_acl(void) {
|
||||
|
||||
isc_netaddr_fromin6(&addr, &in6);
|
||||
|
||||
result = dns_acl_create(named_g_mctx, 1, &acl);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
return (result);
|
||||
}
|
||||
dns_acl_create(named_g_mctx, 1, &acl);
|
||||
|
||||
result = dns_iptable_addprefix(acl->iptable, &addr, 96, true);
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
|
Reference in New Issue
Block a user