src/tls.c:BuildTlsFinished(): work around false positive -Wmaybe-uninitialized.

This commit is contained in:
Daniel Pouzzner
2022-05-10 15:10:23 -05:00
parent 26673a0f28
commit 77fa0ccb82

View File

@ -168,7 +168,7 @@ int BuildTlsHandshakeHash(WOLFSSL* ssl, byte* hash, word32* hashLen)
int BuildTlsFinished(WOLFSSL* ssl, Hashes* hashes, const byte* sender) int BuildTlsFinished(WOLFSSL* ssl, Hashes* hashes, const byte* sender)
{ {
int ret; int ret;
const byte* side; const byte* side = NULL;
word32 hashSz = HSHASH_SZ; word32 hashSz = HSHASH_SZ;
#if defined(WOLFSSL_ASYNC_CRYPT) && !defined(WC_ASYNC_NO_HASH) #if defined(WOLFSSL_ASYNC_CRYPT) && !defined(WC_ASYNC_NO_HASH)
WC_DECLARE_VAR(handshake_hash, byte, HSHASH_SZ, ssl->heap); WC_DECLARE_VAR(handshake_hash, byte, HSHASH_SZ, ssl->heap);