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
This commit is contained in:
M. Sean Finney 2005-04-11 18:02:40 +00:00
parent 8dea00f889
commit afca8db23e

View file

@ -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);
}
}