Zero newly allocated points
authorDr. Stephen Henson <steve@openssl.org>
Sun, 31 Jan 2016 18:13:43 +0000 (18:13 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 31 Jan 2016 22:18:31 +0000 (22:18 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/ec/ec_lib.c

index ac3903c..abb15a5 100644 (file)
@@ -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;