diff options
author | Martin Vejnar <Martin.Vejnar@avg.com> | 2015-07-29 17:28:19 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-07-29 21:21:58 -0400 |
commit | 86fecb23df64a87dc9833f8d88f7c3f9c704f6b9 (patch) | |
tree | c2dc3edf83edcc819b5d11f4a8c4062a6b019285 | |
parent | 9e2b04b677243b49d53cb008b0011f92bdd8d665 (diff) |
RT3774: double-free in DSA
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit fa4629b6a2518d202fd051f228c3d8770682b3be)
-rw-r--r-- | crypto/dsa/dsa_ameth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_ameth.c b/crypto/dsa/dsa_ameth.c index 9fdce81196..1dd373d8be 100644 --- a/crypto/dsa/dsa_ameth.c +++ b/crypto/dsa/dsa_ameth.c @@ -316,6 +316,7 @@ static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) dplen = i2d_ASN1_INTEGER(prkey, &dp); ASN1_STRING_clear_free(prkey); + prkey = NULL; if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(NID_dsa), 0, V_ASN1_SEQUENCE, params, dp, dplen)) |