Browse Source

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.
Holger Weiss 13 years ago
parent
commit
252ae618fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/check_http.c

+ 1 - 1
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);