summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2012-07-18 23:31:17 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2012-07-18 23:31:17 +0200
commitea595f1371820b79041af0a0fa52bd954ea35665 (patch)
tree56c0f50aa64a3fd0e42639124a7d5e7c559a58ed /plugins/check_http.c
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/check_http.c')
-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)
304 /* Fall through to -S option */ 304 /* Fall through to -S option */
305#endif 305#endif
306 case 'S': /* use SSL */ 306 case 'S': /* use SSL */
307#ifndef HAVE_SSL 307#ifdef HAVE_SSL
308 usage4 (_("Invalid option - SSL is not available"));
309#endif
310 use_ssl = TRUE; 308 use_ssl = TRUE;
311 if (optarg == NULL || c != 'S') 309 if (optarg == NULL || c != 'S')
312 ssl_version = 0; 310 ssl_version = 0;
@@ -317,6 +315,9 @@ process_arguments (int argc, char **argv)
317 } 315 }
318 if (specify_port == FALSE) 316 if (specify_port == FALSE)
319 server_port = HTTPS_PORT; 317 server_port = HTTPS_PORT;
318#else
319 usage4 (_("Invalid option - SSL is not available"));
320#endif
320 break; 321 break;
321 case SNI_OPTION: 322 case SNI_OPTION:
322 use_sni = TRUE; 323 use_sni = TRUE;