Commit 0f9e0abb authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Set len to buffer size.

parent e77dbf32
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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");