From: Dr. David von Oheimb Date: Tue, 26 May 2020 09:09:03 +0000 (+0200) Subject: Extend error output of apps/opt_format() to all error cases X-Git-Tag: openssl-3.0.0-alpha4~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f009e37c76df33ffa32204e94a9564ceb71c7745;p=thirdparty%2Fopenssl.git Extend error output of apps/opt_format() to all error cases Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/11998) --- diff --git a/apps/lib/opt.c b/apps/lib/opt.c index 7630d516ca7..d6bfecc8ff7 100644 --- a/apps/lib/opt.c +++ b/apps/lib/opt.c @@ -209,6 +209,7 @@ int opt_format(const char *s, unsigned long flags, int *result) { switch (*s) { default: + opt_printf_stderr("%s: Bad format \"%s\"\n", prog, s); return 0; case 'D': case 'd': @@ -275,6 +276,7 @@ int opt_format(const char *s, unsigned long flags, int *result) return opt_format_error(s, flags); *result = FORMAT_PKCS12; } else { + opt_printf_stderr("%s: Bad format \"%s\"\n", prog, s); return 0; } break;