From 1b4cf96f9b82ec3b06e7902bb21620a09cadd94e Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 31 Jan 2016 18:13:43 +0000 Subject: [PATCH] Zero newly allocated points Reviewed-by: Rich Salz --- crypto/ec/ec_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index ac3903cbce..abb15a5076 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; -- GitLab