mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-04 23:02:05 -04:00
Commit the change of view for view->managed_keys
When we change the view in the view->managed_keys, we never commit the
change, keeping the previous view possibly attached forever.
Call the dns_zone_setviewcommit() immediately after changing the view as
we are detaching the previous view anyway and there's no way to recover
from that.
(cherry picked from commit 7e8b53720d)
This commit is contained in:
parent
f8b7188a42
commit
fe0e9cf301
1 changed files with 1 additions and 0 deletions
|
|
@ -6919,6 +6919,7 @@ add_keydata_zone(dns_view_t *view, const char *directory, isc_mem_t *mctx) {
|
|||
dns_zone_attach(pview->managed_keys,
|
||||
&view->managed_keys);
|
||||
dns_zone_setview(pview->managed_keys, view);
|
||||
dns_zone_setviewcommit(pview->managed_keys);
|
||||
dns_view_detach(&pview);
|
||||
dns_zone_synckeyzone(view->managed_keys);
|
||||
return (ISC_R_SUCCESS);
|
||||
|
|
|
|||
Loading…
Reference in a new issue