projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d7b9b8
)
Always init ctx_tmp in PKCS7_dataFinal since it is always cleaned up.
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 26 Feb 2002 19:33:24 +0000
(19:33 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 26 Feb 2002 19:33:24 +0000
(19:33 +0000)
crypto/pkcs7/pk7_doit.c
patch
|
blob
|
history
diff --git
a/crypto/pkcs7/pk7_doit.c
b/crypto/pkcs7/pk7_doit.c
index 0119272d751c386511754cafaa41fc0f17c1d82d..f589508fdd008581b62c439c57d64ee671ef9f52 100644
(file)
--- 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)))
{