From 9384a24c775e6475ba6e8e4270c6ffea4ac2ab35 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Wed, 3 Jul 2019 20:13:03 -0700 Subject: [PATCH] Fix mixup with boolean/bitwise or for BSSL probing 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 e60e292bd4..bc68ed3daf 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); }