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:35 -0400 |
commit | 374fd385c2347b965c3490aa1c10025e1339d265 (patch) | |
tree | 4d2a53c0e3deb3537dd777d7a69ca8add45512a6 /crypto/dsa | |
parent | 6b7d872e819449a19ea428386f25e90e5eaedc29 (diff) |
RT3774: double-free in DSA
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit fa4629b6a2518d202fd051f228c3d8770682b3be)
Diffstat (limited to 'crypto/dsa')
-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 2a5cd71371..c40e1777ad 100644 --- a/crypto/dsa/dsa_ameth.c +++ b/crypto/dsa/dsa_ameth.c @@ -318,6 +318,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)) |