summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/kdf/tls1_prf.c2
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 }