From: Mark Andrews Date: Wed, 30 Dec 2009 02:32:13 +0000 (+0000) Subject: more for: X-Git-Tag: v9.4.3-P1~2^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ddd8594707fa00cbc7cb6cdd11ed541506da300;p=thirdparty%2Fbind9.git more for: 2824. [bug] "rndc sign" was not being run by the correct task. [RT #20759] --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 266fc0b6175..877fdc89e4b 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.546 2009/12/30 02:26:30 marka Exp $ */ +/* $Id: zone.c,v 1.547 2009/12/30 02:32:13 marka Exp $ */ /*! \file */ @@ -13770,6 +13770,7 @@ zone_rekey(dns_zone_t *zone) { dns_db_closeversion(db, &ver, commit); if (commit) { + LOCK_ZONE(zone); DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_NOTIFYRESIGN); for (key = ISC_LIST_HEAD(rmkeys); @@ -13790,6 +13791,7 @@ zone_rekey(dns_zone_t *zone) { key->first_sign = ISC_FALSE; } } + UNLOCK_ZONE(zone); } isc_time_settoepoch(&zone->refreshkeytime);