From: Dr. Stephen Henson Date: Sun, 31 Jan 2016 18:13:43 +0000 (+0000) Subject: Zero newly allocated points X-Git-Tag: OpenSSL_1_1_0-pre3~340 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b4cf96f9b82ec3b06e7902bb21620a09cadd94e;p=oweals%2Fopenssl.git Zero newly allocated points Reviewed-by: Rich Salz --- 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;