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