summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2012-05-29 10:59:16 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2012-05-29 10:59:16 (GMT)
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 8712079..315848f 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -295,7 +295,7 @@ process_arguments (int argc, char **argv)
295 usage4 (_("Invalid option - SSL is not available")); 295 usage4 (_("Invalid option - SSL is not available"));
296#endif 296#endif
297 use_ssl = TRUE; 297 use_ssl = TRUE;
298 if (optarg == NULL) 298 if (optarg == NULL || c != 'S')
299 ssl_version = 0; 299 ssl_version = 0;
300 else { 300 else {
301 ssl_version = atoi(optarg); 301 ssl_version = atoi(optarg);