diff options
author | tb <> | 2024-07-09 16:38:40 +0000 |
---|---|---|
committer | tb <> | 2024-07-09 16:38:40 +0000 |
commit | c074524dafeaed02bb289136b5f96cfe36ac4fa3 (patch) | |
tree | 32c08ae42fc1074b061b13a25f4084889d739199 /src/lib | |
parent | 4a6b8cb245e62d9f6e0b0bef6d1c9f00c0ee75d3 (diff) | |
download | openbsd-c074524dafeaed02bb289136b5f96cfe36ac4fa3.tar.gz openbsd-c074524dafeaed02bb289136b5f96cfe36ac4fa3.tar.bz2 openbsd-c074524dafeaed02bb289136b5f96cfe36ac4fa3.zip |
Replace a malloc() call with calloc()
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/kdf/tls1_prf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/kdf/tls1_prf.c b/src/lib/libcrypto/kdf/tls1_prf.c index 2483cf96a0..ef819318b9 100644 --- a/src/lib/libcrypto/kdf/tls1_prf.c +++ b/src/lib/libcrypto/kdf/tls1_prf.c | |||
@@ -273,7 +273,7 @@ static int tls1_prf_alg(const EVP_MD *md, | |||
273 | seed, seed_len, out, olen)) | 273 | seed, seed_len, out, olen)) |
274 | return 0; | 274 | return 0; |
275 | 275 | ||
276 | if ((tmp = malloc(olen)) == NULL) { | 276 | if ((tmp = calloc(1, olen)) == NULL) { |
277 | KDFerror(ERR_R_MALLOC_FAILURE); | 277 | KDFerror(ERR_R_MALLOC_FAILURE); |
278 | return 0; | 278 | return 0; |
279 | } | 279 | } |