]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
When LEAP_NOTINSYNC->LEAP_NOWARNING, call crypto_update() if we have crypto_flags
authorHarlan Stenn <stenn@ntp.org>
Sun, 31 Aug 2008 02:09:29 +0000 (22:09 -0400)
committerHarlan Stenn <stenn@ntp.org>
Sun, 31 Aug 2008 02:09:29 +0000 (22:09 -0400)
bk: 48b9fd59uxjZ8vO4WyJnYolFXrl3Ww

ChangeLog
html/pic/boom4.gif [new file with mode: 0644]
ntpd/ntp_proto.c

index f278428c526c8497c714771dfc569ed1c0b5d179..2c474de4f771734832e360c11e651c51766c4057 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+* Changes from Dave Mills:
+  When LEAP_NOTINSYNC->LEAP_NOWARNING, call crypto_update() if we have
+  crypto_flags.
 (4.2.5p125) 2008/08/18 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 1052] Add linuxPPS support to ONCORE driver.
 (4.2.5p124) 2008/08/17 Released by Harlan Stenn <stenn@ntp.org>
diff --git a/html/pic/boom4.gif b/html/pic/boom4.gif
new file mode 100644 (file)
index 0000000..0661ac4
Binary files /dev/null and b/html/pic/boom4.gif differ
index e09f0761d977e54819799cc01fed03d0f82b4949..f25c271adb2ab1a6fc8f0f1e5ab1333c611f5ed4 100644 (file)
@@ -1719,8 +1719,13 @@ clock_update(
                 * leap bits. If crypto, the timer will goose the setup
                 * process.
                 */
-               if (sys_leap == LEAP_NOTINSYNC)
+               if (sys_leap == LEAP_NOTINSYNC) {
                        sys_leap = LEAP_NOWARNING;
+#ifdef OPENSSL
+                       if (crypto_flags)
+                               crypto_update();
+#endif /* OPENSSL */
+               }
                sys_stratum = min(peer->stratum + 1, STRATUM_UNSPEC);
                sys_rootdelay = peer->delay + peer->rootdelay;
                sys_reftime = peer->dst;