From afca8db23ef32a662b861cae64a321e28592177f Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Mon, 11 Apr 2005 18:02:40 +0000 Subject: [PATCH] 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 --- plugins/check_ssh.c | 1 + 1 file changed, 1 insertion(+) 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); } } -- 2.30.2