Skip to content

Commit f42cf7a

Browse files
Fix uninitted class variables from #7464 (#7478)
PR #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 c94d36d commit f42cf7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
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)