Skip to content

Commit cbe8dd5

Browse files
committed
Address FP warning from VS
1 parent 1cdb297 commit cbe8dd5

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
@@ -1298,7 +1298,7 @@ int TLS_hmac(WOLFSSL* ssl, byte* digest, const byte* in, word32 sz, int padSz,
12981298
/* Pre-compute sz + hashSz + padSz + 1 with overflow checking.
12991299
* Used by fuzzer callback and Hmac_UpdateFinal* in the verify path. */
13001300
if (verify && padSz >= 0) {
1301-
word32 hmacSz;
1301+
word32 hmacSz = 0;
13021302
if (!WC_SAFE_SUM_WORD32(sz, hashSz, hmacSz) ||
13031303
!WC_SAFE_SUM_WORD32(hmacSz, (word32)padSz, hmacSz) ||
13041304
!WC_SAFE_SUM_WORD32(hmacSz, 1, hmacSz)) {

0 commit comments

Comments
 (0)