APPS: Fix invoking openssl without a command
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Sat, 6 Jun 2020 10:55:59 +0000 (12:55 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 23 Jun 2020 10:23:02 +0000 (12:23 +0200)
commit96786ad12308215621142f7cb2ef21a9aca30665
treed221924f1b0c038b0b5c76c3b988da7d6296cb39
parent90cf3099df43a5419d59e6a66e75970cbb50a28a
APPS: Fix invoking openssl without a command

Invoking help with "empty" argc leads to a segfault.
Invoke do_cmd() with help as argument which invokes help_main() with
proper argv.

Fixes #12069

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12070)
apps/openssl.c