]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1465] Make sure time from TS2100 is not invalid
authorHarlan Stenn <stenn@ntp.org>
Thu, 1 Apr 2010 07:20:04 +0000 (03:20 -0400)
committerHarlan Stenn <stenn@ntp.org>
Thu, 1 Apr 2010 07:20:04 +0000 (03:20 -0400)
bk: 4bb44924uzgElq5xzhuMdNoHSs0KDQ

ChangeLog
ntpd/refclock_true.c

index d6dbc2ce1bddd3bb42a345ff55beb2b601b9a013..ac17890e67db301fdb4a1a26dca2f4c989ede3f6 100644 (file)
--- 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.
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;