summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-07-09 16:27:49 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-07-09 16:27:49 +0000
commit15b63bd0862458e6b99703b97977fa4e6b1a53ae (patch)
tree10445171dd4275161e5eafc7e251e9f07669b8fa /lib/libcrypto
parent3012f7c776da062aacef92127933d819a24009ec (diff)
Spell OPENSSL_zalloc() correctly as calloc()
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/kdf/tls1_prf.c2
1 files changed, 1 insertions, 1 deletions
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;
}