From: Harlan Stenn Date: Thu, 1 Apr 2010 07:20:04 +0000 (-0400) Subject: [Bug 1465] Make sure time from TS2100 is not invalid X-Git-Tag: NTP_4_2_7P22~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcbe856ede430a3b8b1d4f044a657599c41ead7b;p=thirdparty%2Fntp.git [Bug 1465] Make sure time from TS2100 is not invalid bk: 4bb44924uzgElq5xzhuMdNoHSs0KDQ --- diff --git a/ChangeLog b/ChangeLog index d6dbc2ce1..ac17890e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ * [Bug 1432] Don't set inheritable flag for linux capabilities. +* [Bug 1465] Make sure time from TS2100 is not invalid. * [Bug 1483] AI_NUMERICSERV undefined in 4.2.7p20. * [Bug 1497] fudge is broken by getnetnum() change. * [Bug 1503] Auto-enabling of monitor for "restrict ... limited" wrong. diff --git a/ntpd/refclock_true.c b/ntpd/refclock_true.c index 717748152..0d773d27f 100644 --- a/ntpd/refclock_true.c +++ b/ntpd/refclock_true.c @@ -481,7 +481,8 @@ true_receive( * Adjust the synchronize indicator according to timecode * say were OK, and then say not if we really are not OK */ - if (synced == '>' || synced == '#' || synced == '?') + if (synced == '>' || synced == '#' || synced == '?' + || synced == 'X') pp->leap = LEAP_NOTINSYNC; else pp->leap = LEAP_NOWARNING;