]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Changes from Dave Mills
authorHarlan Stenn <stenn@ntp.org>
Thu, 7 Apr 2005 03:54:32 +0000 (23:54 -0400)
committerHarlan Stenn <stenn@ntp.org>
Thu, 7 Apr 2005 03:54:32 +0000 (23:54 -0400)
bk: 4254aef8csfxtJoZgbbPfD35OrDnUg

ntpd/ntp_proto.c

index 59bc368c0df65e058f724963da2f54d256bb7416..a3c4a4b516915fd343388791f1bd81f62f3690ed 100644 (file)
@@ -1083,8 +1083,7 @@ process_packet(
        if (pleap == LEAP_NOTINSYNC ||          /* test 6 */
            pstratum >= STRATUM_UNSPEC || L_ISNEG(&ci))
                peer->flash |= TEST6;           /* peer not synch */
-       if (p_del < 0 || p_disp < 0 || p_del /  /* test 7 */
-           2 + p_disp >= MAXDISPERSE)
+       if (p_del / 2 + p_disp >= MAXDISPERSE)  /* test 7 */
                peer->flash |= TEST7;           /* invalid distance */
 
        /*