Skip to content

Commit 798b16d

Browse files
Address more code review feedback for PR 9391
1 parent 32b00fd commit 798b16d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38364,8 +38364,8 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
3836438364
ato16(&input[i], &extSz);
3836538365
i += OPAQUE16_LEN;
3836638366

38367-
if (extId < (sizeof(extensions_seen) * 8U)) {
38368-
word32 mask = 1u << extId;
38367+
if (extId < (word16)(sizeof(extensions_seen) * 8U)) {
38368+
word32 mask = 1U << extId;
3836938369
if ((extensions_seen & mask) != 0U) {
3837038370
WOLFSSL_MSG(
3837138371
"DoClientHello: duplicate extension found");

0 commit comments

Comments
 (0)