mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Fix mixup with boolean/bitwise or for BSSL probing (#6252)
Fix an error identified by -wextra where the size of the SSL extension section in the probeMFLN call only.
This commit is contained in:
parent
16312949c9
commit
a0634a71a9
@ -1500,7 +1500,7 @@ bool WiFiClientSecure::probeMaxFragmentLength(IPAddress ip, uint16_t port, uint1
|
|||||||
|
|
||||||
ret = probe.readBytes(extBytes, 2);
|
ret = probe.readBytes(extBytes, 2);
|
||||||
handLen -= ret;
|
handLen -= ret;
|
||||||
extLen = extBytes[1] || (extBytes[0]<<8);
|
extLen = extBytes[1] | (extBytes[0]<<8);
|
||||||
if ((extLen == 0) || (ret != 2)) {
|
if ((extLen == 0) || (ret != 2)) {
|
||||||
return _SendAbort(probe, supportsLen);
|
return _SendAbort(probe, supportsLen);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user