diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-05-26 11:09:03 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-06-13 15:13:21 +0200 |
commit | f009e37c76df33ffa32204e94a9564ceb71c7745 (patch) | |
tree | f2db1c7c803f2570f1448c7eeb96c5411c559a0f /apps/lib | |
parent | 2620c38ba8f9bd4ceffd124e12e2a630621abe27 (diff) |
Extend error output of apps/opt_format() to all error cases
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11998)
Diffstat (limited to 'apps/lib')
-rw-r--r-- | apps/lib/opt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/lib/opt.c b/apps/lib/opt.c index 7630d516ca..d6bfecc8ff 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; |