From: tb Date: Tue, 9 Jul 2024 16:38:40 +0000 (+0000) Subject: Replace a malloc() call with calloc() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0a5cb5b34e2cbb884126a2da6c6a8f36bc08287f;p=openbsd Replace a malloc() call with calloc() --- 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; }