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-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3dfd2f4f52165cd455d22d681f90a434d6284da;p=thirdparty%2Fntp.git [Bug 1465] Make sure time from TS2100 is not invalid bk: 4bb44924uzgElq5xzhuMdNoHSs0KDQ --- diff --git a/ChangeLog b/ChangeLog index d6dbc2ce1b..ac17890e67 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 717748152f..0d773d27f5 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;