From: Harlan Stenn Date: Tue, 20 Apr 2010 05:55:16 +0000 (-0400) Subject: [Bug 1465] Make sure time from TS2100 is not invalid (backport from -dev) X-Git-Tag: NTP_4_2_7P25~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f828f2c15d336b95e12987744035ac727e4c9c5;p=thirdparty%2Fntp.git [Bug 1465] Make sure time from TS2100 is not invalid (backport from -dev) bk: 4bcd41c4Itw1G_yiJ-IDdsZiK3G_nA --- diff --git a/ChangeLog b/ChangeLog index cdb9c7ba8..2510bf327 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1465] Make sure time from TS2100 is not invalid (backport from -dev). * [Bug 1528] Fix EDITLINE_LIBS link order for ntpq and ntpdc. * Remove --with-arlib from br-flock. 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;