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

Adjust lock/unlock in zone_rekey()

This commit is contained in:
Ondřej Surý
2020-02-27 08:45:10 +01:00
committed by Mark Andrews
parent a6626594aa
commit aaaa7e67fa

View File

@@ -19514,10 +19514,11 @@ zone_rekey(dns_zone_t *zone) {
dns_db_closeversion(db, &ver, true);
LOCK_ZONE(zone);
if (commit) {
dns_difftuple_t *tuple;
LOCK_ZONE(zone);
DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_NEEDNOTIFY);
zone_needdump(zone, DNS_DUMP_DELAY);
@@ -19639,10 +19640,8 @@ zone_rekey(dns_zone_t *zone) {
* Schedule the next resigning event
*/
set_resigntime(zone);
UNLOCK_ZONE(zone);
}
LOCK_ZONE(zone);
isc_time_settoepoch(&zone->refreshkeytime);
/*