Skip to content

Commit c404df7

Browse files
author
Andras Fekete
committed
Uninitialized variable
Warning 581196.3236230
1 parent f00c5eb commit c404df7

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
@@ -186,6 +186,7 @@ int BuildTlsFinished(WOLFSSL* ssl, Hashes* hashes, const byte* sender)
186186
return MEMORY_E;
187187
#endif
188188

189+
XMEMSET(handshake_hash, 0, sizeof(handshake_hash));
189190
ret = BuildTlsHandshakeHash(ssl, handshake_hash, &hashSz);
190191
if (ret == 0) {
191192
if (XSTRNCMP((const char*)sender, (const char*)kTlsClientStr,

0 commit comments

Comments
 (0)