529. [bug] 521 contained a bug which caused zones to always

reload.  [RT #410]
This commit is contained in:
Mark Andrews
2000-10-23 00:31:28 +00:00
parent cef18335b7
commit 72fa265baa
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -1,3 +1,6 @@
529. [bug] 521 contained a bug which caused zones to always
reload. [RT #410]
528. [func] The ISC_LIST_XXXX macros now perform sanity checks
on their arguements. ISC_LIST_XXXXUNSAFE can be use
to skip the checks however use with caution.
+3 -3
View File
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.238 2000/10/20 13:29:33 marka Exp $ */
/* $Id: zone.c,v 1.239 2000/10/23 00:31:28 marka Exp $ */
#include <config.h>
@@ -845,7 +845,7 @@ dns_zone_load(dns_zone_t *zone) {
* than the last time the zone was loaded. If the zone has not
* been loaded yet, zone->loadtime will be the epoch.
*/
if (!DNS_ZONEFLG_HASINCLUDE) {
if (!DNS_ZONE_FLAG(zone, DNS_ZONEFLG_HASINCLUDE)) {
result = isc_file_getmodtime(zone->dbname, &filetime);
if (result == ISC_R_SUCCESS &&
!isc_time_isepoch(&zone->loadtime) &&
@@ -5488,7 +5488,7 @@ isc_boolean_t
dns_zone_isforced(dns_zone_t *zone) {
REQUIRE(DNS_ZONE_VALID(zone));
return (DNS_ZONE_FLAG(zone,DNS_ZONEFLG_FORCELOAD));
return (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_FORCELOAD));
}
void