]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1465] Make sure time from TS2100 is not invalid (backport from -dev)
authorHarlan Stenn <stenn@ntp.org>
Tue, 20 Apr 2010 05:55:16 +0000 (01:55 -0400)
committerHarlan Stenn <stenn@ntp.org>
Tue, 20 Apr 2010 05:55:16 +0000 (01:55 -0400)
bk: 4bcd41c4Itw1G_yiJ-IDdsZiK3G_nA

ChangeLog
ntpd/refclock_true.c

index cdb9c7ba8b86aac0bab9947b7a649eb06ce50048..2510bf327aceecc61022994a3f4a5be7e0d0e732 100644 (file)
--- 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.
 
index 717748152f09c6759213001801c8976d1393c4c5..0d773d27f5f491b1a4b0db343936f51fdc08d3b4 100644 (file)
@@ -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;