mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-21 06:08:38 -04:00
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:
parent
8dea00f889
commit
afca8db23e
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue