apps: make list -help not continue with listing
authorPauli <pauli@openssl.org>
Mon, 10 May 2021 05:55:13 +0000 (15:55 +1000)
committerPauli <pauli@openssl.org>
Wed, 12 May 2021 08:40:57 +0000 (18:40 +1000)
All the commands return after printing their help.  List doesn't.
This brings them in line.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15211)

apps/list.c

index bd37f634651c5df3502c569cb6c853543b9fa127..bf7c9b10495c32620023735c7eb3e24404a8722a 100644 (file)
@@ -1560,7 +1560,7 @@ opthelp:
             return 1;
         case OPT_HELP:
             opt_help(list_options);
-            break;
+            return 0;
         case OPT_ONE:
             one = 1;
             break;