diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dgst.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index b6363eb534..cbd4b4e2be 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -114,6 +114,8 @@ int dgst_main(int argc, char **argv) buf = app_malloc(BUFSIZE, "I/O buffer"); md = (EVP_MD *)EVP_get_digestbyname(argv[0]); + if (md != NULL) + digestname = argv[0]; opt_set_unknown_name("digest"); prog = opt_init(argc, argv, dgst_options); |