Uninitialized variable

Warning 581199.5810097
pull/7113/head
Andras Fekete 2024-01-04 16:13:55 -05:00
parent 9db20774d8
commit f84fa8dd8d
1 changed files with 1 additions and 0 deletions

View File

@ -545,6 +545,7 @@ int MakeTlsMasterSecret(WOLFSSL* ssl)
byte handshake_hash[HSHASH_SZ]; byte handshake_hash[HSHASH_SZ];
#endif #endif
XMEMSET(handshake_hash, 0, HSHASH_SZ);
ret = BuildTlsHandshakeHash(ssl, handshake_hash, &hashSz); ret = BuildTlsHandshakeHash(ssl, handshake_hash, &hashSz);
if (ret == 0) { if (ret == 0) {
ret = _MakeTlsExtendedMasterSecret( ret = _MakeTlsExtendedMasterSecret(