1
0
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:
Earle F. Philhower, III 2019-07-04 09:14:50 -07:00 committed by GitHub
parent 16312949c9
commit a0634a71a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
} }