bk: 4f5c4ffekezHkt9-OZ3J1RtkReJ1-w
* [Bug 2156] clock instability with LOCAL driver, from Miroslav Lichvar.
+* [Bug 2159] Windows ntpd using leapfile erroneous leap second 20120401.
(4.2.7p262) 2012/02/29 Released by Harlan Stenn <stenn@ntp.org>
* Improve ntpd scalability for servers with many trusted keys.
(4.2.7p261) 2012/02/27 Released by Harlan Stenn <stenn@ntp.org>
errno = preserved_errno; \
}
+#define MINUTE 60
+#define HOUR (60 * MINUTE)
+#define DAY (24 * HOUR)
+
typedef void (*ctrl_c_fn)(void);
/* authkeys.c */
*/
volatile u_long alarm_overflow;
-#define MINUTE 60
-#define HOUR (60 * MINUTE)
-#define DAY (24 * HOUR)
-
u_long current_time; /* seconds since startup */
/*
/*
- * If a leap second is pending then determine the UTC time stamp
- * of when the insertion must take place
+ * If a leap second is pending for the end of the month,
+ * determine the UTC time stamp when the insertion must take
+ * place
*/
- if (leapsec > 0) {
+ if (0 < leapsec && leapsec < 31 * DAY) {
if (0 == ls_ft.ull) { /* time stamp has not yet been computed */
GetSystemTime(&st);