summaryrefslogtreecommitdiffstats
path: root/apps/dgst.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dgst.c')
-rw-r--r--apps/dgst.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/dgst.c b/apps/dgst.c
index c1bacd79b7..3025314911 100644
--- a/apps/dgst.c
+++ b/apps/dgst.c
@@ -332,7 +332,13 @@ int MAIN(int argc, char **argv)
/* we use md as a filter, reading from 'in' */
- BIO_set_md(bmd,md);
+ if (!BIO_set_md(bmd,md))
+ {
+ BIO_printf(bio_err, "Error setting digest %s\n", pname);
+ ERR_print_errors(bio_err);
+ goto end;
+ }
+
inp=BIO_push(bmd,in);
if (argc == 0)