From: M. Sean Finney Date: Mon, 11 Apr 2005 18:02:40 +0000 (+0000) Subject: properly call close() on the ssh connection before exiting. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;ds=inline;h=afca8db23ef32a662b861cae64a321e28592177f;p=nagiosplug.git 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 --- diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 7b7bc8f..5617add 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); } }