Skip to content

Commit e5d8ce9

Browse files
author
Andras Fekete
committed
Fix memset size
1 parent d164a6c commit e5d8ce9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +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));
189+
XMEMSET(handshake_hash, 0, HSHASH_SZ);
190190
ret = BuildTlsHandshakeHash(ssl, handshake_hash, &hashSz);
191191
if (ret == 0) {
192192
if (XSTRNCMP((const char*)sender, (const char*)kTlsClientStr,

0 commit comments

Comments
 (0)