From: Richard Levitte Date: Tue, 20 Apr 2004 10:27:03 +0000 (+0000) Subject: Another small bug fix. Notified by cipo X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a6b8e925bca78693f4de1cb200424a6fec5cf1e9;p=oweals%2Fopenssl.git Another small bug fix. Notified by cipo --- 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; }