Skip to content

Commit d5d476a

Browse files
authored
Merge pull request #7113 from bandi13/codeSonarFixes
Leak
2 parents 8026aa4 + f84fa8d commit d5d476a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tls.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ int MakeTlsMasterSecret(WOLFSSL* ssl)
545545
byte handshake_hash[HSHASH_SZ];
546546
#endif
547547

548+
XMEMSET(handshake_hash, 0, HSHASH_SZ);
548549
ret = BuildTlsHandshakeHash(ssl, handshake_hash, &hashSz);
549550
if (ret == 0) {
550551
ret = _MakeTlsExtendedMasterSecret(

0 commit comments

Comments
 (0)