[Nagiosplug-checkins] nagiosplug/plugins check_ntp.c,1.21,1.22

Thomas Guyot dermoth at users.sourceforge.net
Tue Apr 3 03:31:27 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv18344/plugins

Modified Files:
	check_ntp.c 
Log Message:
Temporary fix for jitter calculation


Index: check_ntp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ntp.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- check_ntp.c	2 Apr 2007 12:39:30 -0000	1.21
+++ check_ntp.c	3 Apr 2007 01:31:25 -0000	1.22
@@ -475,7 +475,10 @@
 	}
 
 	/* cleanup */
-	for(j=0; j<num_hosts; j++){ close(socklist[j]); }
+	/* FIXME: Not closing the socket to avoid re-use of the local port
+	 * which can cause old NTP packets to be read instead of NTP control
+	 * pactets in jitter_request(). THERE MUST BE ANOTHER WAY...
+	 * for(j=0; j<num_hosts; j++){ close(socklist[j]); } */
 	free(socklist);
 	free(ufds);
 	free(servers);





More information about the Commits mailing list