[nagiosplug] check_http: Fix compilation without SSL support
"Nagios Plugin Development" <[email protected]> Wed, 18 Jul 2012 21:50:46 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: ea595f1371820b79041af0a0fa52bd954ea35665 Author: Holger Weiss <[email protected]> Date: Wed Jul 18 23:31:17 2012 +0200 URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=ea595f1 check_http: Fix compilation without SSL support The "ssl_version" variable was undeclared when the plugins were compiled --without-openssl and --without-gnutls. Bug reported by Michael LaCorte on the "nagiosplug-help" mailing list (Message-ID: <[email protected]>). --- plugins/check_http.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/check_http.c b/plugins/check_http.c index 77a235e..37cf01a 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -304,9 +304,7 @@ process_arguments (int argc, char **argv) /* Fall through to -S option */ #endif case 'S': /* use SSL */ -#ifndef HAVE_SSL - usage4 (_("Invalid option - SSL is not available")); -#endif +#ifdef HAVE_SSL use_ssl = TRUE; if (optarg == NULL || c != 'S') ssl_version = 0; @@ -317,6 +315,9 @@ process_arguments (int argc, char **argv) } if (specify_port == FALSE) server_port = HTTPS_PORT; +#else + usage4 (_("Invalid option - SSL is not available")); +#endif break; case SNI_OPTION: use_sni = TRUE; ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/