mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
Zero newly allocated points
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
aedc37e700
commit
1b4cf96f9b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user