diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2004-08-05 18:09:50 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2004-08-05 18:09:50 +0000 |
commit | c128bb0fa28a34dede012892721047b7712ef62c (patch) | |
tree | 8ed4f2655190bd3a14149a3f7de258bb3fd1f205 /apps | |
parent | 30fe028f077567ae4be5f82e3bf58d05c40e1296 (diff) | |
download | openssl-c128bb0fa28a34dede012892721047b7712ef62c.tar.gz |
Don't ignore return value of EVP_DigestInit_ex() in md BIOs and dgst utility.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dgst.c | 8 |
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) |