diff options
author | steve <steve> | 2012-02-29 14:13:00 +0000 |
---|---|---|
committer | steve <steve> | 2012-02-29 14:13:00 +0000 |
commit | d42ac39e480e9eced792878a3b1cb1a11f090635 (patch) | |
tree | 2b49de5f83418eb28f8695d367f2090cef925235 | |
parent | 0facc1c6c335aa01d982883d10fa837ceb944107 (diff) | |
download | openssl-d42ac39e480e9eced792878a3b1cb1a11f090635.tar.gz |
PR: 2743
Reported by: Dmitry Belyavsky <beldmit@gmail.com>
Fix memory leak if invalid GOST MAC key given.
-rw-r--r-- | engines/ccgost/gost_pmeth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/ccgost/gost_pmeth.c b/engines/ccgost/gost_pmeth.c index 4a05853e5..0bd08e930 100644 --- 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, |