2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

3277. [bug] Make sure automatic key maintenance is started

when "auto-dnssec maintain" is turned on during
			"rndc reconfig". [RT #26805]
This commit is contained in:
Evan Hunt
2012-02-06 21:33:50 +00:00
parent 22e7f42b56
commit 99f6179191
6 changed files with 50 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.644 2012/02/03 22:27:16 each Exp $ */
/* $Id: server.c,v 1.645 2012/02/06 21:33:49 each Exp $ */
/*! \file */
@@ -3488,6 +3488,12 @@ configure_zone(const cfg_obj_t *config, const cfg_obj_t *zconfig,
*/
CHECK(dns_view_addzone(view, zone));
/*
* Ensure that zone keys are reloaded on reconfig
*/
if ((dns_zone_getkeyopts(zone) & DNS_ZONEKEY_MAINTAIN) != 0)
dns_zone_rekey(zone, ISC_FALSE);
cleanup:
if (zone != NULL)
dns_zone_detach(&zone);