summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r--plugins/check_ntp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 8a08af5..cf63eea 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -475,7 +475,10 @@ double offset_request(const char *host, int *status){
475 } 475 }
476 476
477 /* cleanup */ 477 /* cleanup */
478 for(j=0; j<num_hosts; j++){ close(socklist[j]); } 478 /* FIXME: Not closing the socket to avoid re-use of the local port
479 * which can cause old NTP packets to be read instead of NTP control
480 * pactets in jitter_request(). THERE MUST BE ANOTHER WAY...
481 * for(j=0; j<num_hosts; j++){ close(socklist[j]); } */
479 free(socklist); 482 free(socklist);
480 free(ufds); 483 free(ufds);
481 free(servers); 484 free(servers);