From: Harlan Stenn Date: Mon, 29 Apr 2024 03:49:42 +0000 (-0500) Subject: [Bug 2734] TEST3 prevents initial interleave sync X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17cc9805f4b944ff246fb48801d06f5999899b01;p=thirdparty%2Fntp.git [Bug 2734] TEST3 prevents initial interleave sync bk: 662f18d6iM9tKcZOv3KRP5MJuWMXPw --- diff --git a/ChangeLog b/ChangeLog index 0a3525e4c..9787c3ea5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -64,6 +64,7 @@ Fix the script checkHtmlFileDates. * [Bug 3756] Improve OpenSSL library/header detection. * [Bug 3753] ntpd fails to start with FIPS-enabled OpenSSL 3. +* [Bug 2734] TEST3 prevents initial interleave sync. Fix from * Remove extraneous */ from libparse/ieee754io.c * Fix .datecheck target line in Makefile.am. * Log failures to allocate receive buffers. diff --git a/ntpd/ntp_proto.c b/ntpd/ntp_proto.c index 585b8289b..170294c68 100644 --- a/ntpd/ntp_proto.c +++ b/ntpd/ntp_proto.c @@ -2526,8 +2526,10 @@ receive( * more flashers. Leave if the packet is not good. */ process_packet(peer, pkt, rbufp->recv_length); - if (peer->flash & PKT_TEST_MASK) + /* Bug 2734: TEST3 prevents initial interleave sync */ + if ((~TEST3 & peer->flash) & PKT_TEST_MASK) { return; + } /* [bug 3592] Update poll. Ideally this should not happen in a * receive branch, but too much is going on here... at least we