提交 16ba7074 编写于 作者: D David Ramos 提交者: Matt Caswell

Double free in i2o_ECPublicKey

PR: 3338
上级 da12bfca
...@@ -1435,8 +1435,11 @@ int i2o_ECPublicKey(EC_KEY *a, unsigned char **out) ...@@ -1435,8 +1435,11 @@ int i2o_ECPublicKey(EC_KEY *a, unsigned char **out)
*out, buf_len, NULL)) *out, buf_len, NULL))
{ {
ECerr(EC_F_I2O_ECPUBLICKEY, ERR_R_EC_LIB); ECerr(EC_F_I2O_ECPUBLICKEY, ERR_R_EC_LIB);
OPENSSL_free(*out); if (new_buffer)
*out = NULL; {
OPENSSL_free(*out);
*out = NULL;
}
return 0; return 0;
} }
if (!new_buffer) if (!new_buffer)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册