summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 77a235e..37cf01a 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;