-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on double free #935
Comments
which version of the libary and mcp are you using? SSL is reset in the here: arduinoWebSockets/src/WebSocketsClient.cpp Lines 529 to 538 in 1789a18
|
Ahhh, I see the cause now. I am testing a new WEBSOCKETS_NETWORK_TYPE and skipped the define check on L528. Can probably close this and handle it in an MR that would address that. arduinoWebSockets == 2.6.1 |
it may make sense to use this for L528 |
There is a crash on double free if an SSL/TLS connection is used and it disconnects and then tries to connect again.
The fix is to set
client->ssl = NULL;
after line 558. The cause is thessl
pointer has not been set to null after the same object was deleted from thetcp
pointer.The text was updated successfully, but these errors were encountered: