From afca8db23ef32a662b861cae64a321e28592177f Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Mon, 11 Apr 2005 18:02:40 +0000 Subject: 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); } } -- cgit v0.10-9-g596f