summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2004-04-20 10:27:03 +0000
committerRichard Levitte <levitte@openssl.org>2004-04-20 10:27:03 +0000
commita6b8e925bca78693f4de1cb200424a6fec5cf1e9 (patch)
treeaa0f18508cd806de9a208b9a10e2c5da0e9c9cde
parentd2fca2c59ad28832ccdaff1ea6ebe292e628fe59 (diff)
Another small bug fix. Notified by cipo <cseplo_l@netlock.net>
-rw-r--r--apps/dgst.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dgst.c b/apps/dgst.c
index e50f663977..8b4ec7f2e2 100644
--- a/apps/dgst.c
+++ b/apps/dgst.c
@@ -465,7 +465,10 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
}
BIO_printf(out, "\n");
}
- BIO_set_md_ctx(bmd,md_ctx);
+ if (hmac_key)
+ {
+ BIO_set_md_ctx(bmd,md_ctx);
+ }
return 0;
}