aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2012-05-29 12:59:16 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2012-05-29 12:59:16 +0200
commit252ae618fc6a02ca68872a1262d054a0b7b98fdb (patch)
tree3cd63adb4055b17ea9f4d53ed87072b9e273c08d /plugins
parentec2596b92d013a320e171f81912149915ef7ea40 (diff)
downloadmonitoring-plugins-252ae618fc6a02ca68872a1262d054a0b7b98fdb.tar.gz
check_http: Fix -C/--certificate option handling
The support for specifying the desired SSL protocol version via an optional -S/--ssl argument broke the -C/--certificate option. This is fixed now.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 8712079d..315848fc 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -295,7 +295,7 @@ process_arguments (int argc, char **argv)
usage4 (_("Invalid option - SSL is not available"));
#endif
use_ssl = TRUE;
- if (optarg == NULL)
+ if (optarg == NULL || c != 'S')
ssl_version = 0;
else {
ssl_version = atoi(optarg);