mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ss: make sure pointer to failed ss creation is wiped out
This commit is contained in:
parent
f35a3b8969
commit
baccd5b238
1 changed files with 5 additions and 0 deletions
|
@ -1024,9 +1024,14 @@ lws_ss_create(struct lws_context *context, int tsi, const lws_ss_info_t *ssi,
|
|||
#if defined(LWS_WITH_SERVER) || defined(LWS_WITH_SYS_SMD)
|
||||
late_bail:
|
||||
#endif
|
||||
|
||||
if (ppss)
|
||||
*ppss = NULL;
|
||||
|
||||
lws_pt_lock(pt, __func__);
|
||||
lws_dll2_remove(&h->list);
|
||||
lws_pt_unlock(pt);
|
||||
|
||||
__lws_lc_untag(&h->lc);
|
||||
lws_free(h);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue