From 0f9e0abbeed97eb667dcbb7423f47f5fd11f5f93 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 17 May 2007 16:42:05 +0000 Subject: [PATCH] Set len to buffer size. --- apps/dgst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dgst.c b/apps/dgst.c index 312d8804c3..7e79868e7a 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -593,6 +593,7 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout, { EVP_MD_CTX *ctx; BIO_get_md_ctx(bp, &ctx); + len = BUFSIZE; if(!EVP_DigestSignFinal(ctx, buf, &len)) { BIO_printf(bio_err, "Error Signing Data\n"); -- 2.25.1