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:
a859587
)
PR: 2743
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 29 Feb 2012 14:12:52 +0000
(14:12 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 29 Feb 2012 14:12:52 +0000
(14:12 +0000)
Reported by: Dmitry Belyavsky <beldmit@gmail.com>
Fix memory leak if invalid GOST MAC key given.
engines/ccgost/gost_pmeth.c
patch
|
blob
|
history
diff --git
a/engines/ccgost/gost_pmeth.c
b/engines/ccgost/gost_pmeth.c
index 4a05853e55e956f3bc504afb1a534d3968e86c5e..0bd08e93010018eda42cb1450d786af83451879b 100644
(file)
--- a/
engines/ccgost/gost_pmeth.c
+++ b/
engines/ccgost/gost_pmeth.c
@@
-521,6
+521,7
@@
static int pkey_gost_mac_ctrl_str(EVP_PKEY_CTX *ctx,
{
GOSTerr(GOST_F_PKEY_GOST_MAC_CTRL_STR,
GOST_R_INVALID_MAC_KEY_LENGTH);
+ OPENSSL_free(keybuf);
return 0;
}
ret= pkey_gost_mac_ctrl(ctx, EVP_PKEY_CTRL_SET_MAC_KEY,