Blame SOURCES/ntp-4.2.6p5-cve-2016-7433.patch

5bc849
diff -up ntp-4.2.6p5/ntpd/ntp_proto.c.cve-2016-7433 ntp-4.2.6p5/ntpd/ntp_proto.c
5bc849
--- ntp-4.2.6p5/ntpd/ntp_proto.c.cve-2016-7433	2016-11-21 17:54:29.604704343 +0100
5bc849
+++ ntp-4.2.6p5/ntpd/ntp_proto.c	2016-11-21 17:55:04.231569928 +0100
5bc849
@@ -2914,8 +2914,7 @@ root_distance(
5bc849
 	 * where:
5bc849
 	 *  delta   is the round-trip delay
5bc849
 	 *  DELTA   is the root delay
5bc849
-	 *  epsilon is the remote server precision + local precision
5bc849
-	 *	    + (15 usec each second)
5bc849
+	 *  epsilon is the peer dispersion (15 usec each second)
5bc849
 	 *  EPSILON is the root dispersion
5bc849
 	 *  phi     is the peer jitter statistic
5bc849
 	 *
5bc849
@@ -2926,8 +2925,7 @@ root_distance(
5bc849
 	 * other worse choices.
5bc849
 	 */
5bc849
 	dtemp = (peer->delay + peer->rootdelay) / 2
5bc849
-		+ LOGTOD(peer->precision)
5bc849
-		  + LOGTOD(sys_precision)
5bc849
+		+ peer->disp
5bc849
 		  + clock_phi * (current_time - peer->update)
5bc849
 		+ peer->rootdisp
5bc849
 		+ peer->jitter;