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-Tag: NTP_4_2_7P47~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e77d97dbf18a1f04c7b41ce22dbf97f54942758;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 ecaad40dd..c99808fd7 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 be69ce6cd..0429de60a 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)