]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2140. [bug] Handle master files with a modification time that
authorMark Andrews <marka@isc.org>
Mon, 26 Feb 2007 00:42:21 +0000 (00:42 +0000)
committerMark Andrews <marka@isc.org>
Mon, 26 Feb 2007 00:42:21 +0000 (00:42 +0000)
                        matches the epoch. [RT# 16612]

CHANGES
lib/dns/zone.c

diff --git a/CHANGES b/CHANGES
index 60d21bd3b347c4afe04cc02b0291573b91c11575..00c05897dfff4b4b6d8133bf6d68926e37e41cd1 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2140.  [bug]           Handle master files with a modification time that
+                       matches the epoch. [RT# 16612]
+
 2141.  [bug]           dig/host should not be setting IDN_ASCCHECK (IDN
                        equivalent of LDH checks).  [RT #16609]
 
index fee509f50a80b3fd4d027bc5d935b6baef11f10a..2da1bdb88a8cd898f2cd19fd6254352a7bcdb89f 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: zone.c,v 1.461 2006/12/21 06:02:30 marka Exp $ */
+/* $Id: zone.c,v 1.462 2007/02/26 00:42:21 marka Exp $ */
 
 /*! \file */
 
@@ -1214,7 +1214,8 @@ zone_load(dns_zone_t *zone, unsigned int flags) {
 
                result = isc_file_getmodtime(zone->masterfile, &filetime);
                if (result == ISC_R_SUCCESS) {
-                       if (!DNS_ZONE_FLAG(zone, DNS_ZONEFLG_HASINCLUDE) &&
+                       if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED) &&
+                           !DNS_ZONE_FLAG(zone, DNS_ZONEFLG_HASINCLUDE) &&
                            isc_time_compare(&filetime, &zone->loadtime) <= 0) {
                                dns_zone_log(zone, ISC_LOG_DEBUG(1),
                                             "skipping load: master file "