From: Harlan Stenn Date: Wed, 18 Sep 2002 06:30:06 +0000 (-0400) Subject: absoffset can be "too negative". Reported by Brian Utterback, X-Git-Tag: NTP_4_1_1C_RC1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caaef7d5f48752b4fd141c5c09241a161e096845;p=thirdparty%2Fntp.git absoffset can be "too negative". Reported by Brian Utterback, with fix from Mattias Lang. bk: 3d881d6eNN7FBPbhVt4A5hOndAJMRw --- diff --git a/ntpdate/ntpdate.c b/ntpdate/ntpdate.c index db82375a19..e1147b4c31 100644 --- a/ntpdate/ntpdate.c +++ b/ntpdate/ntpdate.c @@ -1248,7 +1248,8 @@ clock_adjust(void) absoffset = server->soffset; if (absoffset < 0) absoffset = -absoffset; - dostep = (absoffset >= NTPDATE_THRESHOLD); + dostep = (absoffset >= NTPDATE_THRESHOLD + || absoffset == -absoffset); } if (dostep) {