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:
Holger Weiss 2012-05-29 12:59:16 +02:00
parent ec2596b92d
commit 252ae618fc

View file

@ -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);