summaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2014-04-22 12:38:26 +0100
committerBen Laurie <ben@links.org>2014-04-22 17:00:52 +0100
commit3b21abfd6c985dc04415893c8ec287676cbd5b5d (patch)
tree5e460a6f2f82dc8c148d0804efe631c13fce6d3c /crypto/pkcs7
parent5aeb43393be459b8621fc4710135d5206e0961a7 (diff)
Fix double frees.
Conflicts: CHANGES
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r--crypto/pkcs7/pk7_doit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c
index 77fda3b82a..4c12a9dcc9 100644
--- a/crypto/pkcs7/pk7_doit.c
+++ b/crypto/pkcs7/pk7_doit.c
@@ -928,6 +928,7 @@ int PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si)
if (EVP_DigestSignUpdate(&mctx,abuf,alen) <= 0)
goto err;
OPENSSL_free(abuf);
+ abuf = NULL;
if (EVP_DigestSignFinal(&mctx, NULL, &siglen) <= 0)
goto err;
abuf = OPENSSL_malloc(siglen);