From a6b8e925bca78693f4de1cb200424a6fec5cf1e9 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 20 Apr 2004 10:27:03 +0000 Subject: [PATCH] Another small bug fix. Notified by cipo --- apps/dgst.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.25.1