From 292968fb89e30fe8db20663ae2775ba85080f83f Mon Sep 17 00:00:00 2001 From: job <> Date: Thu, 2 Sep 2021 21:37:40 +0000 Subject: Change OPENSSL_malloc to calloc() OK tb@ --- src/lib/libcrypto/x509/x509_asid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/x509/x509_asid.c b/src/lib/libcrypto/x509/x509_asid.c index 0c35efbfda..511002aab8 100644 --- a/src/lib/libcrypto/x509/x509_asid.c +++ b/src/lib/libcrypto/x509/x509_asid.c @@ -13,6 +13,7 @@ #include #include +#include #include #include @@ -619,7 +620,7 @@ static int ASIdentifierChoice_canonize(ASIdentifierChoice *choice) ASRange *r; switch (a->type) { case ASIdOrRange_id: - if ((r = OPENSSL_malloc(sizeof(*r))) == NULL) { + if ((r = calloc(1, sizeof(*r))) == NULL) { X509V3error(ERR_R_MALLOC_FAILURE); goto done; } -- cgit v1.2.3-55-g6feb