Commit c2f09596 authored by Evan Hunt's avatar Evan Hunt

oops: missed a declaration, and forgot to lock the zone before clearing

the flag.  (and accidentally ran make tests in the wrong tree, misleading
myself into thinking it was fine.)
parent 6d85ab24
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.538 2009/12/04 22:45:11 each Exp $ */
/* $Id: zone.c,v 1.539 2009/12/05 01:25:43 each Exp $ */
/*! \file */
......@@ -6483,6 +6483,7 @@ zone_sign(dns_zone_t *zone) {
unsigned int nkeys = 0;
isc_uint32_t nodes;
isc_boolean_t was_ksk;
isc_time_t when;
dns_rdataset_init(&rdataset);
dns_fixedname_init(&fixed);
......@@ -6842,8 +6843,10 @@ zone_sign(dns_zone_t *zone) {
*/
TIME_NOW(&when);
if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_NOTIFYRESIGN)) {
LOCK_ZONE(zone);
DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLG_NOTIFYRESIGN);
zone_notify(zone, when);
UNLOCK_ZONE(zone);
zone_notify(zone, &when);
}
pauseall:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment