mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
client: clean up pwsi if late failure
This commit is contained in:
parent
eb5f437578
commit
1f477e4915
1 changed files with 4 additions and 0 deletions
|
@ -453,8 +453,12 @@ lws_client_connect_via_info(const struct lws_client_connect_info *i)
|
|||
|
||||
#if defined(LWS_WITH_TLS)
|
||||
bail3:
|
||||
lwsl_info("%s: tls start fail\n", __func__);
|
||||
lws_close_free_wsi(wsi, LWS_CLOSE_STATUS_NOSTATUS, "tls start fail");
|
||||
|
||||
if (i->pwsi)
|
||||
*i->pwsi = NULL;
|
||||
|
||||
return NULL;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue