]> 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 20:59:07 +0000 (07:59 +1100)
                        [RT #47042]

CHANGES
lib/dns/zone.c

diff --git a/CHANGES b/CHANGES
index 42254ec2b9df767aacb66fd2036153424374bb99..e21066917aa18781944fab0a7d1abb73075ef0da 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+4874.  [bug]           Wrong time display when reporting new keywarntime.
+                       [RT #47042]
+
 4873.  [doc]           Grammars for named.conf included in the ARM are now
                        automatically generated by the configuration parser
                        itself.  As a side effect of the work needed to
index 4469ad35ab0b558ecfd142e01ccd53e6f36c380f..ed9ae40c7c17c74c0329973f7803d586c3423249 100644 (file)
@@ -6123,7 +6123,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);
        }