From: Juergen Perlinger Date: Sun, 19 Feb 2012 08:29:05 +0000 (+0100) Subject: [bug 2143] do not process data if quality indication says 'not good' to avoid glitches X-Git-Tag: NTP_4_2_7P258~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b95804b8fc5360dbc2660b62b518af178126b28e;p=thirdparty%2Fntp.git [bug 2143] do not process data if quality indication says 'not good' to avoid glitches bk: 4f40b2d1RDhgJQlwsOXUV_DPR-7ySA --- diff --git a/ntpd/refclock_nmea.c b/ntpd/refclock_nmea.c index 51c875013..af8c68c4f 100644 --- a/ntpd/refclock_nmea.c +++ b/ntpd/refclock_nmea.c @@ -917,7 +917,12 @@ nmea_receive( refclock_report(peer, CEVNT_BADDATE); return; } - + /* check clock sanity; [bug 2143] */ + if (pp->leap == LEAP_NOTINSYNC) { /* no good status? */ + refclock_report(peer, CEVNT_BADREPLY); + return; + } + DPRINTF(1, ("%s effective timecode: %04u-%02u-%02u %02d:%02d:%02d\n", refnumtoa(&peer->srcadr), date.year, date.month, date.monthday,