mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
RT3774: double-free in DSA
Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
5bb17d1b3c
commit
fa4629b6a2
@ -321,6 +321,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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user