From c5b0c6e8ae91507147a62f78a43aea24341846f7 Mon Sep 17 00:00:00 2001 From: Shelly Liberman Date: Thu, 19 Nov 2020 19:58:40 +0200 Subject: [PATCH] fix uninitialized variables Signed-off-by: Shelly Liberman --- library/ssl_tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index b0dabf2dd..f6244dcf2 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -933,8 +933,8 @@ int tls_prf_generic( mbedtls_md_type_t md_type, { size_t nb; size_t i, j, k, md_len; - unsigned char tmp[128]; - unsigned char h_i[MBEDTLS_MD_MAX_SIZE]; + unsigned char tmp[128] = {0}; + unsigned char h_i[MBEDTLS_MD_MAX_SIZE] = {0}; mbedtls_md_handle_t md_info; mbedtls_md_context_t md_ctx; int ret;