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 16:58:43 +0100
commit4ba5e63bfd5c290ebde962af87588d503f3796b0 (patch)
tree11d337237c60fccfeec90ef018480ccdb6086a5e /crypto/pkcs7
parent9330a85e0499f10752434c451977d65d80d8de19 (diff)
Fix double frees.
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 82e145b856..a0559b124e 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);