Skip to content

Commit a0634a7

Browse files
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.
1 parent 1631294 commit a0634a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ bool WiFiClientSecure::probeMaxFragmentLength(IPAddress ip, uint16_t port, uint1
15001500

15011501
ret = probe.readBytes(extBytes, 2);
15021502
handLen -= ret;
1503-
extLen = extBytes[1] || (extBytes[0]<<8);
1503+
extLen = extBytes[1] | (extBytes[0]<<8);
15041504
if ((extLen == 0) || (ret != 2)) {
15051505
return _SendAbort(probe, supportsLen);
15061506
}

0 commit comments

Comments
 (0)