Merge pull request #3900 from shelib01/fix_uninitialized_var

Fix uninitialized variables
This commit is contained in:
Shelly Liberman 2020-11-25 11:25:51 +02:00 committed by GitHub
commit 9e27b901b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;