artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80b7412
)
Spell OPENSSL_zalloc() correctly as calloc()
author
tb
<tb@openbsd.org>
Tue, 9 Jul 2024 16:27:48 +0000
(16:27 +0000)
committer
tb
<tb@openbsd.org>
Tue, 9 Jul 2024 16:27:48 +0000
(16:27 +0000)
lib/libcrypto/kdf/tls1_prf.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/kdf/tls1_prf.c
b/lib/libcrypto/kdf/tls1_prf.c
index
5b6ea97
..
e2086e8
100644
(file)
--- 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;
}