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:
4e64f67
)
cms_SignerInfo_content_sign: free sig on failure path
author
Jonas Maebe
<jonas.maebe@elis.ugent.be>
Sun, 8 Dec 2013 16:16:57 +0000
(17:16 +0100)
committer
Kurt Roeckx
<kurt@roeckx.be>
Fri, 15 Aug 2014 20:38:19 +0000
(22:38 +0200)
Signed-off-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/cms/cms_sd.c
patch
|
blob
|
history
diff --git
a/crypto/cms/cms_sd.c
b/crypto/cms/cms_sd.c
index ac5103abf7ccc04b61613697102730dfe440cdd6..681ee7e34803eff8a5bc7ca52e478d85852478c8 100644
(file)
--- a/
crypto/cms/cms_sd.c
+++ b/
crypto/cms/cms_sd.c
@@
-680,7
+680,10
@@
static int cms_SignerInfo_content_sign(CMS_ContentInfo *cms,
goto err;
}
if (EVP_PKEY_sign(pctx, sig, &siglen, md, mdlen) <= 0)
+ {
+ OPENSSL_free(sig);
goto err;
+ }
ASN1_STRING_set0(si->signature, sig, siglen);
}
else