mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Remove unused zoneconf from do_addzone
This is unused, so we can make the function call shorter.
This commit is contained in:
parent
cbd1d71a1f
commit
13414c640b
1 changed files with 3 additions and 6 deletions
|
|
@ -12189,8 +12189,7 @@ delete_zoneconf(dns_view_t *view, const cfg_obj_t *config,
|
|||
|
||||
static isc_result_t
|
||||
do_addzone(named_server_t *server, dns_view_t *view, dns_name_t *name,
|
||||
cfg_obj_t *zoneconf, const cfg_obj_t *zoneobj, bool redirect,
|
||||
isc_buffer_t *text) {
|
||||
const cfg_obj_t *zoneobj, bool redirect, isc_buffer_t *text) {
|
||||
isc_result_t result, tresult;
|
||||
dns_zone_t *zone = NULL;
|
||||
const cfg_obj_t *voptions = NULL;
|
||||
|
|
@ -12198,8 +12197,6 @@ do_addzone(named_server_t *server, dns_view_t *view, dns_name_t *name,
|
|||
MDB_txn *txn = NULL;
|
||||
MDB_dbi dbi;
|
||||
|
||||
UNUSED(zoneconf);
|
||||
|
||||
if (!view->newzone.allowed) {
|
||||
result = ISC_R_NOPERM;
|
||||
TCHECK(putstr(text, "new zone configuration is not allowed"));
|
||||
|
|
@ -12550,8 +12547,8 @@ named_server_changezone(named_server_t *server, char *command,
|
|||
}
|
||||
|
||||
if (addzone) {
|
||||
CHECK(do_addzone(server, view, dnsname, zoneconf, zoneobj,
|
||||
redirect, text));
|
||||
CHECK(do_addzone(server, view, dnsname, zoneobj, redirect,
|
||||
text));
|
||||
} else {
|
||||
CHECK(do_modzone(server, view, dnsname, zonename, zoneobj,
|
||||
redirect, text));
|
||||
|
|
|
|||
Loading…
Reference in a new issue