aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar M. Sean Finney <seanius@users.sourceforge.net> 2005-04-11 18:02:40 +0000
committerGravatar M. Sean Finney <seanius@users.sourceforge.net> 2005-04-11 18:02:40 +0000
commitafca8db23ef32a662b861cae64a321e28592177f (patch)
treedcc99c4e88b7540da072dd1de4a5bb9b0a483671 /plugins
parent8dea00f889a5dbf1b5f67e6efafb75170993cb5d (diff)
downloadmonitoring-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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_ssh.c1
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)
printf
(_("SSH OK - %s (protocol %s)\n"),
ssh_server, ssh_proto);
+ close(sd);
exit (STATE_OK);
}
}