From b7cda7cd07c136e74a6ea77073fba3db55a2442b Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Wed, 28 Nov 2018 15:02:21 -0800 Subject: [PATCH] Don't clear authentication options on a ::stop Many objects now expect a WiFiClient* object to be passed to them and potentially re-used multiple times (HTTPClient, others). Clearing the authentication options on a ::stop means they can never reconnect. Remove the option clearing in ::stop Fixes #5379 --- libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp b/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp index fe11be8f39..ee30a2fe46 100644 --- a/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp +++ b/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp @@ -189,7 +189,6 @@ bool WiFiClientSecure::stop(unsigned int maxWaitMs) { if (_session) { br_ssl_engine_get_session_parameters(_eng, _session->getSession()); } - _clearAuthenticationSettings(); } _freeSSL(); return ret;