From: Juergen Perlinger Date: Tue, 15 Nov 2016 22:02:51 +0000 (+0100) Subject: [Bug 3107] Incorrect Logic for Peer Event Limiting X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51689dc8f83084663aecca417ea1d7ef124d46a7;p=thirdparty%2Fntp.git [Bug 3107] Incorrect Logic for Peer Event Limiting bk: 582b860bQxVsjP9GRZmN1Mtxk8yJyw --- diff --git a/ChangeLog b/ChangeLog index 0805467dc..126609df3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +--- +* [Bug 3107] Incorrect Logic for Peer Event Limiting + - applied patch by Matthew Van Gundy + --- (4.2.8p8) 2016/06/02 Released by Harlan Stenn diff --git a/ntpd/ntp_control.c b/ntpd/ntp_control.c index 07b5697f1..597ffe243 100644 --- a/ntpd/ntp_control.c +++ b/ntpd/ntp_control.c @@ -4962,7 +4962,7 @@ report_event( u_char errlast; errlast = (u_char)err & ~PEER_EVENT; - if (peer->last_event == errlast) + if (peer->last_event != errlast) peer->num_events = 0; if (peer->num_events >= CTL_PEER_MAXEVENTS) return;