diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-19 13:05:41 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-19 13:05:41 +0000 |
commit | 5dd7b5dff439ab19119efd24d7822ca19b3e5bf7 (patch) | |
tree | 6387fcb417700324a58a4290401c96c6da387a63 /plugins/check_http.c | |
parent | 65282c7685ca01c57d94d3df93c2f95d5b945e57 (diff) | |
download | monitoring-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index d47f5ce6..294866b0 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -801,16 +801,15 @@ check_http (void) 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 |