]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
more for:
authorMark Andrews <marka@isc.org>
Wed, 30 Dec 2009 02:26:30 +0000 (02:26 +0000)
committerMark Andrews <marka@isc.org>
Wed, 30 Dec 2009 02:26:30 +0000 (02:26 +0000)
2824.   [bug]           "rndc sign" was not being run by the correct task.
                        [RT #20759]

lib/dns/zone.c

index 1905f2063b39b1b6a6655ad4ba05174cd55d5ab2..266fc0b6175b39f05b9105d5ee0aba4433dd3dba 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: zone.c,v 1.545 2009/12/29 22:20:33 marka Exp $ */
+/* $Id: zone.c,v 1.546 2009/12/30 02:26:30 marka Exp $ */
 
 /*! \file */
 
@@ -10293,11 +10293,10 @@ zone_settimer(dns_zone_t *zone, isc_time_t *now) {
                            isc_time_compare(&zone->dumptime, &next) < 0)
                                next = zone->dumptime;
                }
-               if (DNS_ZONEKEY_OPTION(zone, DNS_ZONEKEY_MAINTAIN) &&
-                   !DNS_ZONE_FLAG(zone, DNS_ZONEFLG_REFRESHING)) {
+               if (!DNS_ZONE_FLAG(zone, DNS_ZONEFLG_REFRESHING) &&
+                   !isc_time_isepoch(&zone->refreshkeytime)) {
                        if (isc_time_isepoch(&next) ||
-                           (!isc_time_isepoch(&zone->refreshkeytime) &&
-                           isc_time_compare(&zone->refreshkeytime, &next) < 0))
+                           isc_time_compare(&zone->refreshkeytime, &next) < 0)
                                next = zone->refreshkeytime;
                }
                if (!isc_time_isepoch(&zone->resigntime)) {