]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/ciphers.c
Check non-option arguments
[thirdparty/openssl.git] / apps / ciphers.c
index 500b416046141e424e0aca5c620b0fae614b08f8..3afbbe5002bf5f5e88dfc7b8e264641d42ca472b 100644 (file)
@@ -176,11 +176,12 @@ int ciphers_main(int argc, char **argv)
             break;
         }
     }
+
+    /* Optional arg is cipher name. */
     argv = opt_rest();
     argc = opt_num_rest();
-
     if (argc == 1)
-        ciphers = *argv;
+        ciphers = argv[0];
     else if (argc != 0)
         goto opthelp;