Skip to content

Commit e7697d7

Browse files
committed
Fix from review
1 parent 7ae7d9f commit e7697d7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/tls.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,9 +1295,9 @@ int TLS_hmac(WOLFSSL* ssl, byte* digest, const byte* in, word32 sz, int padSz,
12951295
hashSz = ssl->specs.hash_size;
12961296
#endif
12971297

1298-
/* Pre-compute sz + hashSz + padSz + 1 with overflow checking for the
1299-
* verify path. Used by fuzzer callback and Hmac_UpdateFinal*. */
1300-
if (verify && padSz >= 0) {
1298+
/* Pre-compute sz + hashSz + padSz + 1 with overflow checking.
1299+
* Used by fuzzer callback and Hmac_UpdateFinal* in the verify path. */
1300+
if (padSz >= 0) {
13011301
word32 hmacSz;
13021302
if (!WC_SAFE_SUM_WORD32(sz, hashSz, hmacSz) ||
13031303
!WC_SAFE_SUM_WORD32(hmacSz, (word32)padSz, hmacSz) ||

0 commit comments

Comments
 (0)