From 0a5cb5b34e2cbb884126a2da6c6a8f36bc08287f Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 9 Jul 2024 16:38:40 +0000 Subject: [PATCH] Replace a malloc() call with calloc() --- lib/libcrypto/kdf/tls1_prf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libcrypto/kdf/tls1_prf.c b/lib/libcrypto/kdf/tls1_prf.c index 2483cf96a0d..ef819318b97 100644 --- a/lib/libcrypto/kdf/tls1_prf.c +++ b/lib/libcrypto/kdf/tls1_prf.c @@ -273,7 +273,7 @@ static int tls1_prf_alg(const EVP_MD *md, seed, seed_len, out, olen)) return 0; - if ((tmp = malloc(olen)) == NULL) { + if ((tmp = calloc(1, olen)) == NULL) { KDFerror(ERR_R_MALLOC_FAILURE); return 0; } -- 2.20.1