[Nagiosplug-checkins] nagiosplug/plugins check_http.c,1.82,1.83

M. Sean Finney seanius at users.sourceforge.net
Wed Oct 19 06:08:25 CEST 2005


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

Modified Files:
	check_http.c 
Log Message:
endif was a few lines off of where it should be

Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- check_http.c	19 Oct 2005 12:59:55 -0000	1.82
+++ check_http.c	19 Oct 2005 13:05:41 -0000	1.83
@@ -801,16 +801,15 @@
 		if (connect_SSL () != OK) {
 			die (STATE_CRITICAL, _("Unable to open TCP socket\n"));
 		}
-#ifdef USE_OPENSSL
+#  ifdef USE_OPENSSL
 		if ((server_cert = SSL_get_peer_certificate (ssl)) != NULL) {
 			X509_free (server_cert);
 		}
-#endif
 		else {
 			printf (_("CRITICAL - Cannot retrieve server certificate.\n"));
 			return STATE_CRITICAL;
 		}
-
+#  endif /* USE_OPENSSL */
 	}
 	else {
 #endif





More information about the Commits mailing list