Skip to content

Commit ed74feb

Browse files
Fix uninitted class variables from esp8266#7464
PR esp8266#7464 removed the reset of client authentication settings when server authentication settings were changed, however it never did initialize the client authentication information to nullptr in the constructor. This can result in crashes during connections when client certs are not applied. Fix by resetting the client authenticaion variables on object construction.
1 parent 91427a1 commit ed74feb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ WiFiClientSecure::WiFiClientSecure() : WiFiClient() {
105105
_clear();
106106
_clearAuthenticationSettings();
107107
_certStore = nullptr; // Don't want to remove cert store on a clear, should be long lived
108+
_sk = nullptr;
109+
_axtls_chain = nullptr;
110+
_axtls_sk = nullptr;
108111
stack_thunk_add_ref();
109112
}
110113

0 commit comments

Comments
 (0)