1
0
Fork 0
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:
Andy Green 2021-03-14 12:18:33 +00:00
parent f35a3b8969
commit baccd5b238

View file

@ -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);