提交 1b4cf96f 编写于 作者: D Dr. Stephen Henson

Zero newly allocated points

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 aedc37e7
...@@ -594,7 +594,7 @@ EC_POINT *EC_POINT_new(const EC_GROUP *group) ...@@ -594,7 +594,7 @@ EC_POINT *EC_POINT_new(const EC_GROUP *group)
return NULL; return NULL;
} }
ret = OPENSSL_malloc(sizeof(*ret)); ret = OPENSSL_zalloc(sizeof(*ret));
if (ret == NULL) { if (ret == NULL) {
ECerr(EC_F_EC_POINT_NEW, ERR_R_MALLOC_FAILURE); ECerr(EC_F_EC_POINT_NEW, ERR_R_MALLOC_FAILURE);
return NULL; return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册