Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > e8c0b673ea1b7e162bcac8e349d03cea > files > 10

ntp-4.2.2p1-15.el5_7.1.src.rpm

--- ntp-4.2.2p1/ntpd/ntp_proto.c.clockselect	2007-08-16 12:26:27.000000000 +0200
+++ ntp-4.2.2p1/ntpd/ntp_proto.c	2007-08-16 12:27:29.000000000 +0200
@@ -2043,10 +2043,12 @@ clock_select(void)
 			typeacts->status = CTL_PST_SEL_DISTSYSPEER;
 			peer_list[0] = typeacts;
 			nlist = 1;
+			error[0] = synch[0] = 0.0;
 		} else if (typelocal != 0) {
 			typelocal->status = CTL_PST_SEL_DISTSYSPEER;
 			peer_list[0] = typelocal;
 			nlist = 1;
+			error[0] = synch[0] = 0.0;
 		} else {
 			if (osys_peer != NULL) {
 				NLOG(NLOG_SYNCSTATUS)