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-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be5f88571c0eb5b23147c85ed603c2cd366bcbbe;p=thirdparty%2Fntp.git [Bug 1797] Restore stale timestamp check from the RANGEGATE cleanup bk: 4d425d11TOYwXG18f17c3_12TdKlxA --- diff --git a/ChangeLog b/ChangeLog index 0255ecd937..7d6704339e 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 16fc6d2688..8711dd8e9a 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. */