We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a32e7f commit e68facdCopy full SHA for e68facd
1 file changed
src/ssl.c
@@ -30338,9 +30338,9 @@ int wolfSSL_curve_is_disabled(const WOLFSSL* ssl, word16 curve_id)
30338
}
30339
if (curve_id >= 32) {
30340
/* 0 is for invalid and 1-14 aren't used otherwise. */
30341
- return (ssl->disabledCurves & (1 << (curve_id - 32))) != 0;
+ return (ssl->disabledCurves & (1U << (curve_id - 32))) != 0;
30342
30343
- return (ssl->disabledCurves & (1 << curve_id)) != 0;
+ return (ssl->disabledCurves & (1U << curve_id)) != 0;
30344
30345
30346
#if (defined(HAVE_ECC) || \
0 commit comments