aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2012-07-18 23:31:17 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2012-07-18 23:31:17 +0200
commitea595f1371820b79041af0a0fa52bd954ea35665 (patch)
tree56c0f50aa64a3fd0e42639124a7d5e7c559a58ed /plugins
parentc98223f44175fcfc2ee550349d238db1146b7d2d (diff)
downloadmonitoring-plugins-ea595f1371820b79041af0a0fa52bd954ea35665.tar.gz
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: <CCD30C91-A2A8-463A-82A9-F99B54F741D3@gmail.com>).
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_http.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 77a235e4..37cf01ad 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;