]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4874. [bug] Wrong time display when reporting new keywarntime.
authorMark Andrews <marka@isc.org>
Tue, 23 Jan 2018 20:59:07 +0000 (07:59 +1100)
committerMark Andrews <marka@isc.org>
Tue, 23 Jan 2018 21:00:58 +0000 (08:00 +1100)
                        [RT #47042]

(cherry picked from commit 83d005de61c6153cfd9fac957ac2cd2863419e7d)

CHANGES
lib/dns/zone.c

diff --git a/CHANGES b/CHANGES
index 86d97b78aa8ba6a6d144b4a071f7a907140d995f..05221a88256d765472ea60dfef498ebd6f2225cc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+4874.  [bug]           Wrong time display when reporting new keywarntime.
+                       [RT #47042]
+
 4872.  [bug]           Don't permit loading meta RR types such as TKEY
                        from master files. [RT #47009]
 
index 2387489148fd89642552407cd1561efdff57234e..3566e8764d2adbe2b4afc4821f3b2f051d796fb5 100644 (file)
@@ -5994,7 +5994,7 @@ set_key_expiry_warning(dns_zone_t *zone, isc_stdtime_t when, isc_stdtime_t now)
                isc_time_set(&zone->keywarntime, when - delta, 0);
        }  else {
                isc_time_set(&zone->keywarntime, when - 7 * 24 * 3600, 0);
-               isc_time_formattimestamp(&zone->refreshkeytime, timebuf, 80);
+               isc_time_formattimestamp(&zone->keywarntime, timebuf, 80);
                dns_zone_log(zone, ISC_LOG_NOTICE,
                             "setting keywarntime to %s", timebuf);
        }