diff --git a/src/tls.c b/src/tls.c index c1394e21c..a2f0e8782 100644 --- a/src/tls.c +++ b/src/tls.c @@ -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,