Fix memset size

This commit is contained in:
Andras Fekete
2024-01-03 10:29:56 -05:00
parent d164a6c543
commit e5d8ce9983

View File

@ -186,7 +186,7 @@ int BuildTlsFinished(WOLFSSL* ssl, Hashes* hashes, const byte* sender)
return MEMORY_E;
#endif
XMEMSET(handshake_hash, 0, sizeof(handshake_hash));
XMEMSET(handshake_hash, 0, HSHASH_SZ);
ret = BuildTlsHandshakeHash(ssl, handshake_hash, &hashSz);
if (ret == 0) {
if (XSTRNCMP((const char*)sender, (const char*)kTlsClientStr,