Skip to content

Commit e68facd

Browse files
committed
src/ssl.c: in wolfSSL_curve_is_disabled(), fix shiftTooManyBitsSigned.
1 parent 8a32e7f commit e68facd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ssl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30338,9 +30338,9 @@ int wolfSSL_curve_is_disabled(const WOLFSSL* ssl, word16 curve_id)
3033830338
}
3033930339
if (curve_id >= 32) {
3034030340
/* 0 is for invalid and 1-14 aren't used otherwise. */
30341-
return (ssl->disabledCurves & (1 << (curve_id - 32))) != 0;
30341+
return (ssl->disabledCurves & (1U << (curve_id - 32))) != 0;
3034230342
}
30343-
return (ssl->disabledCurves & (1 << curve_id)) != 0;
30343+
return (ssl->disabledCurves & (1U << curve_id)) != 0;
3034430344
}
3034530345

3034630346
#if (defined(HAVE_ECC) || \

0 commit comments

Comments
 (0)