diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index ac3903cbce93f74ee225519b82cee3886cffbaa3..abb15a50769c73d849f5e0465fe94cd469443a1c 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -594,7 +594,7 @@ EC_POINT *EC_POINT_new(const EC_GROUP *group) return NULL; } - ret = OPENSSL_malloc(sizeof(*ret)); + ret = OPENSSL_zalloc(sizeof(*ret)); if (ret == NULL) { ECerr(EC_F_EC_POINT_NEW, ERR_R_MALLOC_FAILURE); return NULL;