summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorM. Sean Finney <seanius@users.sourceforge.net>2005-10-19 13:05:41 (GMT)
committerM. Sean Finney <seanius@users.sourceforge.net>2005-10-19 13:05:41 (GMT)
commit5dd7b5dff439ab19119efd24d7822ca19b3e5bf7 (patch)
tree6387fcb417700324a58a4290401c96c6da387a63 /plugins/check_http.c
parent65282c7685ca01c57d94d3df93c2f95d5b945e57 (diff)
downloadmonitoring-plugins-5dd7b5dff439ab19119efd24d7822ca19b3e5bf7.tar.gz
endif was a few lines off of where it should be
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1256 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index d47f5ce..294866b 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -801,16 +801,15 @@ check_http (void)
801 if (connect_SSL () != OK) { 801 if (connect_SSL () != OK) {
802 die (STATE_CRITICAL, _("Unable to open TCP socket\n")); 802 die (STATE_CRITICAL, _("Unable to open TCP socket\n"));
803 } 803 }
804#ifdef USE_OPENSSL 804# ifdef USE_OPENSSL
805 if ((server_cert = SSL_get_peer_certificate (ssl)) != NULL) { 805 if ((server_cert = SSL_get_peer_certificate (ssl)) != NULL) {
806 X509_free (server_cert); 806 X509_free (server_cert);
807 } 807 }
808#endif
809 else { 808 else {
810 printf (_("CRITICAL - Cannot retrieve server certificate.\n")); 809 printf (_("CRITICAL - Cannot retrieve server certificate.\n"));
811 return STATE_CRITICAL; 810 return STATE_CRITICAL;
812 } 811 }
813 812# endif /* USE_OPENSSL */
814 } 813 }
815 else { 814 else {
816#endif 815#endif