mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:20:01 -04:00
Don't call dns_zone_setadded() on modify
If we are modifiying the zone, the zone must have been added before.
Don't overwrite this value on modifications.
Also it feels cleaner to pass added=false to configure_zone() in
do_modzone().
(cherry picked from commit 780872e07e)
This commit is contained in:
parent
4a65095823
commit
7e30d16e93
1 changed files with 4 additions and 2 deletions
|
|
@ -7026,7 +7026,9 @@ configure_zone(const cfg_obj_t *config, const cfg_obj_t *zconfig,
|
|||
/*
|
||||
* Mark whether the zone was originally added at runtime or not
|
||||
*/
|
||||
dns_zone_setadded(zone, added);
|
||||
if (!modify) {
|
||||
dns_zone_setadded(zone, added);
|
||||
}
|
||||
|
||||
/*
|
||||
* Determine if we need to set up inline signing.
|
||||
|
|
@ -14179,7 +14181,7 @@ do_modzone(named_server_t *server, ns_cfgctx_t *cfg, dns_view_t *view,
|
|||
dns_view_thaw(view);
|
||||
result = configure_zone(cfg->config, zoneobj, cfg->vconfig, view,
|
||||
&server->viewlist, &server->kasplist,
|
||||
&server->keystorelist, cfg->actx, true, false,
|
||||
&server->keystorelist, cfg->actx, false, false,
|
||||
false, true);
|
||||
dns_view_freeze(view);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue