]> granicus.if.org Git - apache/commitdiff
ab: move option processing for setting a custom
authorRainer Jung <rjung@apache.org>
Sun, 28 May 2017 14:10:09 +0000 (14:10 +0000)
committerRainer Jung <rjung@apache.org>
Sun, 28 May 2017 14:10:09 +0000 (14:10 +0000)
HTTP method outside of the HTTPS only handling.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1796493 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 09df8656d8bf04993bdb2725c7664fe924fb69d6..58769a9c89f47b2dad9137cdd844e91f127f8809 100644 (file)
@@ -2465,14 +2465,14 @@ int main(int argc, const char * const argv[])
             case 'B':
                 myhost = apr_pstrdup(cntxt, opt_arg);
                 break;
-#ifdef USE_SSL
-            case 'Z':
-                ssl_cipher = strdup(opt_arg);
-                break;
             case 'm':
                 method = CUSTOM_METHOD;
                 method_str[CUSTOM_METHOD] = strdup(opt_arg);
                 break;
+#ifdef USE_SSL
+            case 'Z':
+                ssl_cipher = strdup(opt_arg);
+                break;
             case 'f':
 #if OPENSSL_VERSION_NUMBER < 0x10100000L
                 if (strncasecmp(opt_arg, "ALL", 3) == 0) {