[Nagiosplug-checkins] nagiosplug/plugins check_ssh.c,1.26,1.27

M. Sean Finney seanius at users.sourceforge.net
Mon Apr 11 11:03:20 CEST 2005


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7875

Modified Files:
	check_ssh.c 
Log Message:
properly call close() on the ssh connection before exiting.


Index: check_ssh.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ssh.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- check_ssh.c	25 Dec 2004 23:17:44 -0000	1.26
+++ check_ssh.c	11 Apr 2005 18:02:40 -0000	1.27
@@ -240,6 +240,7 @@
 		printf
 			(_("SSH OK - %s (protocol %s)\n"),
 			 ssh_server, ssh_proto);
+		close(sd);
 		exit (STATE_OK);
 	}
 }





More information about the Commits mailing list