Double free in i2o_ECPublicKey

PR: 3338
This commit is contained in:
David Ramos 2014-05-03 12:00:27 +02:00 committed by Matt Caswell
parent d576146ebf
commit e34af3ec2b

View file

@ -1435,8 +1435,11 @@ int i2o_ECPublicKey(EC_KEY *a, unsigned char **out)
*out, buf_len, NULL))
{
ECerr(EC_F_I2O_ECPUBLICKEY, ERR_R_EC_LIB);
if (new_buffer)
{
OPENSSL_free(*out);
*out = NULL;
}
return 0;
}
if (!new_buffer)