+3647. [bug] Address a race condition when shutting down a zone.
+ [RT #34750]
+
3646. [bug] Journal filename string could be set incorrectly,
causing garbage in log messages. [RT #34738]
REQUIRE(zone->irefs == 0);
REQUIRE(!LOCKED_ZONE(zone));
REQUIRE(zone->timer == NULL);
+ REQUIRE(zone->zmgr == NULL);
/*
* Managed objects. Order is important.
isc_task_detach(&zone->task);
if (zone->loadtask != NULL)
isc_task_detach(&zone->loadtask);
- if (zone->zmgr != NULL)
- dns_zonemgr_releasezone(zone->zmgr, zone);
/* Unmanaged objects */
for (signing = ISC_LIST_HEAD(zone->signing);
zone->statelist = NULL;
}
RWUNLOCK(&zone->zmgr->rwlock, isc_rwlocktype_write);
+ dns_zonemgr_releasezone(zone->zmgr, zone);
}
/*