From: Harlan Stenn Date: Fri, 28 Jan 2011 06:07:13 +0000 (-0500) Subject: [Bug 1797] Restore stale timestamp check from the RANGEGATE cleanup X-Git-Tag: NTP_4_2_7P127~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51d66f1fec42634e099a691c949eedfaa07a1227;p=thirdparty%2Fntp.git [Bug 1797] Restore stale timestamp check from the RANGEGATE cleanup bk: 4d425d11TOYwXG18f17c3_12TdKlxA --- diff --git a/ChangeLog b/ChangeLog index 0255ecd93..7d6704339 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1797] Restore stale timestamp check from the RANGEGATE cleanup. (4.2.7p126) 2011/01/27 Released by Harlan Stenn * Fix unexposed fencepost error in COUNTOF(). * Add more unit tests for timeval_tostr() and timespec_tostr(). diff --git a/ntpd/ntp_refclock.c b/ntpd/ntp_refclock.c index 16fc6d268..8711dd8e9 100644 --- a/ntpd/ntp_refclock.c +++ b/ntpd/ntp_refclock.c @@ -1323,6 +1323,9 @@ refclock_pps( else return (0); + if (timeout.tv_sec == ap->ts.tv_sec) + return (0); + /* * Convert to signed fraction offset and stuff in median filter. */