diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-05-17 16:42:05 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-05-17 16:42:05 +0000 |
commit | 0f9e0abbeed97eb667dcbb7423f47f5fd11f5f93 (patch) | |
tree | 68e3ee86d9f6723ada1704c6f426758391084c55 /apps | |
parent | e77dbf325f57cc86e6918baf36d597506e77266d (diff) |
Set len to buffer size.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dgst.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |