From: Harlan Stenn Date: Sat, 11 Sep 2010 05:16:34 +0000 (-0400) Subject: [Bug 1616] refclock_acts.c: if (pp->leap == 2) is always false. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=341f4af1a3efb2f334b0cbed09329fa99168670c;p=thirdparty%2Fntp.git [Bug 1616] refclock_acts.c: if (pp->leap == 2) is always false. bk: 4c8b10b215xi_WKBCJVqiHdD9rQ8Dg --- diff --git a/ChangeLog b/ChangeLog index ecaad40dd8..c99808fd70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ * [Bug 1588] finish configure --disable-autokey implementation. +* [Bug 1616] refclock_acts.c: if (pp->leap == 2) is always false. * [Bug 1620] [Backward Incompatible] "discard minimum" value should be in seconds, not log2 seconds. (4.2.7p46) 2010/09/10 Released by Harlan Stenn diff --git a/ntpd/refclock_acts.c b/ntpd/refclock_acts.c index be69ce6cd5..0429de60a8 100644 --- a/ntpd/refclock_acts.c +++ b/ntpd/refclock_acts.c @@ -499,7 +499,7 @@ acts_timecode( pp->leap = LEAP_NOWARNING; if (leap == 1) pp->leap = LEAP_ADDSECOND; - else if (pp->leap == 2) + else if (leap == 2) pp->leap = LEAP_DELSECOND; memcpy(&pp->refid, REFACTS, 4); if (up->msgcnt == 0)