mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 14:46:57 -04:00
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.
This commit is contained in:
parent
ec2596b92d
commit
252ae618fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue