diff options
| author | tb <> | 2024-07-09 16:38:40 +0000 |
|---|---|---|
| committer | tb <> | 2024-07-09 16:38:40 +0000 |
| commit | 69feb33fe69e926c5c09cd0f85a81ccabaa69f5f (patch) | |
| tree | 32c08ae42fc1074b061b13a25f4084889d739199 /src/lib | |
| parent | 7bee1ba9841b039d438831d9fb88465a709c1404 (diff) | |
| download | openbsd-69feb33fe69e926c5c09cd0f85a81ccabaa69f5f.tar.gz openbsd-69feb33fe69e926c5c09cd0f85a81ccabaa69f5f.tar.bz2 openbsd-69feb33fe69e926c5c09cd0f85a81ccabaa69f5f.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 | } |
