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:
689c07b
)
Fix potential memory leak in dh_ameth.c
author
Scott Wilson
<scott@sawilson.xyz>
Thu, 31 Oct 2019 11:37:51 +0000
(22:37 +1100)
committer
Patrick Steuer
<patrick.steuer@de.ibm.com>
Fri, 1 Nov 2019 11:47:13 +0000
(12:47 +0100)
Free dukm in error handling of dh_cms_encrypt()
Fixes #10294
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Patrick Steuer <patrick.steuer@de.ibm.com>
(Merged from https://github.com/openssl/openssl/pull/10310)
(cherry picked from commit
6624e1f7b6a397948561e9cc2774f0c8af1d2c79
)
crypto/dh/dh_ameth.c
patch
|
blob
|
history
diff --git
a/crypto/dh/dh_ameth.c
b/crypto/dh/dh_ameth.c
index 60af9e21593ff8ed08f3e9d59f3dccfcc28c9ab1..d53004080d5e4d9e9e1de5b1291e5260b16ab25e 100644
(file)
--- a/
crypto/dh/dh_ameth.c
+++ b/
crypto/dh/dh_ameth.c
@@
-901,6
+901,7
@@
static int dh_cms_encrypt(CMS_RecipientInfo *ri)
err:
OPENSSL_free(penc);
X509_ALGOR_free(wrap_alg);
+ OPENSSL_free(dukm);
return rv;
}