[nagiosplug] check_http: Fix -C/--certificate option handling
Nagios Plugin Development
nagios-plugins at users.sourceforge.net
Tue May 29 13:50:19 CEST 2012
Module: nagiosplug
Branch: master
Commit: 252ae618fc6a02ca68872a1262d054a0b7b98fdb
Author: Holger Weiss <holger at zedat.fu-berlin.de>
Date: Tue May 29 12:59:16 2012 +0200
URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=252ae61
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.
---
plugins/check_http.c | 2 +-
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)
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);
More information about the Commits
mailing list