From a0634a71a9240ea2ecb326d01159a31ae511a531 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Thu, 4 Jul 2019 09:14:50 -0700 Subject: [PATCH] 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. --- libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp b/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp index e60e292bd..bc68ed3da 100644 --- a/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp +++ b/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp @@ -1500,7 +1500,7 @@ bool WiFiClientSecure::probeMaxFragmentLength(IPAddress ip, uint16_t port, uint1 ret = probe.readBytes(extBytes, 2); handLen -= ret; - extLen = extBytes[1] || (extBytes[0]<<8); + extLen = extBytes[1] | (extBytes[0]<<8); if ((extLen == 0) || (ret != 2)) { return _SendAbort(probe, supportsLen); }