diff options
| author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-04-03 01:31:25 +0000 |
|---|---|---|
| committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-04-03 01:31:25 +0000 |
| commit | fd440b64a6aeea6dd27811b98db7192b9c8259a4 (patch) | |
| tree | 3e89d05abd8824a8fdca33def08ff6dcef74882c /plugins | |
| parent | dcbf7bdf6b67a41e749271f60b4ee0f1f34abc34 (diff) | |
| download | monitoring-plugins-fd440b64a6aeea6dd27811b98db7192b9c8259a4.tar.gz | |
Temporary fix for jitter calculation
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1674 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_ntp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 8a08af50..cf63eea6 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); |
