diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-04-11 18:02:40 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-04-11 18:02:40 +0000 |
commit | afca8db23ef32a662b861cae64a321e28592177f (patch) | |
tree | dcc99c4e88b7540da072dd1de4a5bb9b0a483671 | |
parent | 8dea00f889a5dbf1b5f67e6efafb75170993cb5d (diff) | |
download | monitoring-plugins-afca8db23ef32a662b861cae64a321e28592177f.tar.gz |
properly call close() on the ssh connection before exiting.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1160 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/check_ssh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 7b7bc8fd..5617addc 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
@@ -240,6 +240,7 @@ ssh_connect (char *haddr, int hport, char *remote_version) | |||
240 | printf | 240 | printf |
241 | (_("SSH OK - %s (protocol %s)\n"), | 241 | (_("SSH OK - %s (protocol %s)\n"), |
242 | ssh_server, ssh_proto); | 242 | ssh_server, ssh_proto); |
243 | close(sd); | ||
243 | exit (STATE_OK); | 244 | exit (STATE_OK); |
244 | } | 245 | } |
245 | } | 246 | } |