diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-12-21 13:50:09 +0100 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-01-13 11:53:15 +0100 |
commit | 855c68163b182960f2b27bb961a323944d96237e (patch) | |
tree | fb6fdd79823afb24aa9ae3e567e535936a168886 /apps | |
parent | f0a057dd5343ca81849dd140ee9c302cda914f41 (diff) | |
download | openssl-855c68163b182960f2b27bb961a323944d96237e.tar.gz |
apps/lib/opt.c: Fix error message on unknown option/digest
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13658)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/lib/opt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/lib/opt.c b/apps/lib/opt.c index 22d4138301..9675bc474d 100644 --- a/apps/lib/opt.c +++ b/apps/lib/opt.c @@ -370,7 +370,8 @@ int opt_md(const char *name, const EVP_MD **mdp) *mdp = EVP_get_digestbyname(name); if (*mdp != NULL) return 1; - opt_printf_stderr("%s: Unknown message digest: %s\n", prog, name); + opt_printf_stderr("%s: Unknown option or message digest: %s\n", prog, + name != NULL ? name : "\"\""); return 0; } |