summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dcbf7bd)
raw | patch | inline | side by side (parent: dcbf7bd)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Tue, 3 Apr 2007 01:31:25 +0000 (01:31 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Tue, 3 Apr 2007 01:31:25 +0000 (01:31 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1674 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ntp.c | patch | blob | history |
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 8a08af5019da89ad7ad66b97f109332b3cb33074..cf63eea65c8665a1c872eb311ddbf8ab2f5462bf 100644 (file)
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
}
/* 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);