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 5f36cbcb77..1042d940f4 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]; prog = opt_init(argc, argv, dgst_options); while ((o = opt_next()) != OPT_EOF) { |