From: Andreas Gustafsson Date: Sat, 23 Sep 2000 06:27:12 +0000 (+0000) Subject: zone_postload() used variable "new" before setting it [RT #337] X-Git-Tag: v9.0.1^6~35 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=629c6629d05c7640f8641066a7636cc7053f44ee;p=thirdparty%2Fbind9.git zone_postload() used variable "new" before setting it [RT #337] --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 8b28da20dcf..9e0283e1dbe 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.215 2000/09/20 09:50:34 marka Exp $ */ +/* $Id: zone.c,v 1.216 2000/09/23 06:27:12 gson Exp $ */ #include @@ -904,6 +904,8 @@ zone_postload(dns_zone_t *zone, dns_db_t *db, isc_time_t loadtime, isc_uint32_t serial, refresh, retry, expire, minimum; isc_stdtime_t now; + isc_stdtime_get(&now); + /* * Initiate zone transfer? We may need a error code that * indicates that the "permanent" form does not exist. @@ -935,7 +937,6 @@ zone_postload(dns_zone_t *zone, dns_db_t *db, isc_time_t loadtime, "number of nodes in database: %u", dns_db_nodecount(db)); zone->loadtime = loadtime; - isc_stdtime_get(&now); zone_log(zone, me, ISC_LOG_INFO, "loaded");