From: Dr. Stephen Henson Date: Thu, 17 May 2007 16:42:05 +0000 (+0000) Subject: Set len to buffer size. X-Git-Tag: OpenSSL_0_9_8k^2~832 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f9e0abbeed97eb667dcbb7423f47f5fd11f5f93;p=oweals%2Fopenssl.git Set len to buffer size. --- 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");