mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +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
@@ -157,10 +157,7 @@ dns_view_create(isc_mem_t *mctx, dns_dispatchmgr_t *dispatchmgr,
|
||||
goto cleanup_order;
|
||||
}
|
||||
|
||||
result = dns_aclenv_create(view->mctx, &view->aclenv);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
goto cleanup_peerlist;
|
||||
}
|
||||
dns_aclenv_create(view->mctx, &view->aclenv);
|
||||
|
||||
dns_nametree_create(view->mctx, DNS_NAMETREE_COUNT, "sfd", &view->sfd);
|
||||
|
||||
@@ -169,11 +166,6 @@ dns_view_create(isc_mem_t *mctx, dns_dispatchmgr_t *dispatchmgr,
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
|
||||
cleanup_peerlist:
|
||||
if (view->peers != NULL) {
|
||||
dns_peerlist_detach(&view->peers);
|
||||
}
|
||||
|
||||
cleanup_order:
|
||||
if (view->order != NULL) {
|
||||
dns_order_detach(&view->order);
|
||||
|
Reference in New Issue
Block a user