From: tb Date: Tue, 9 Jul 2024 16:27:48 +0000 (+0000) Subject: Spell OPENSSL_zalloc() correctly as calloc() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f1376746cd028b7c65429a644ab88b0f866f6dac;p=openbsd Spell OPENSSL_zalloc() correctly as calloc() --- diff --git a/lib/libcrypto/kdf/tls1_prf.c b/lib/libcrypto/kdf/tls1_prf.c index 5b6ea972411..e2086e8d298 100644 --- a/lib/libcrypto/kdf/tls1_prf.c +++ b/lib/libcrypto/kdf/tls1_prf.c @@ -37,7 +37,7 @@ static int pkey_tls1_prf_init(EVP_PKEY_CTX *ctx) { TLS1_PRF_PKEY_CTX *kctx; - if ((kctx = OPENSSL_zalloc(sizeof(*kctx))) == NULL) { + if ((kctx = calloc(1, sizeof(*kctx))) == NULL) { KDFerror(ERR_R_MALLOC_FAILURE); return 0; }