diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-02-26 19:33:24 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-02-26 19:33:24 +0000 |
commit | b12540520daea56e5a6c2ee22092b0ee2f060e44 (patch) | |
tree | d2c7287a5abfbfeded90be98bbc19d7a4044af28 /crypto/pkcs7/pk7_doit.c | |
parent | 0d7b9b8b7e2c65d824bdf6dabf0842f79409f4e6 (diff) | |
download | openssl-new-b12540520daea56e5a6c2ee22092b0ee2f060e44.tar.gz |
Always init ctx_tmp in PKCS7_dataFinal since it is always cleaned up.
Diffstat (limited to 'crypto/pkcs7/pk7_doit.c')
-rw-r--r-- | crypto/pkcs7/pk7_doit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c index 0119272d75..f589508fdd 100644 --- a/crypto/pkcs7/pk7_doit.c +++ b/crypto/pkcs7/pk7_doit.c @@ -512,6 +512,7 @@ int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) STACK_OF(PKCS7_SIGNER_INFO) *si_sk=NULL; ASN1_OCTET_STRING *os=NULL; + EVP_MD_CTX_init(&ctx_tmp); i=OBJ_obj2nid(p7->type); p7->state=PKCS7_S_HEADER; @@ -576,7 +577,6 @@ int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) /* We now have the EVP_MD_CTX, lets do the * signing. */ - EVP_MD_CTX_init(&ctx_tmp); EVP_MD_CTX_copy_ex(&ctx_tmp,mdc); if (!BUF_MEM_grow(buf,EVP_PKEY_size(si->pkey))) { |