1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

sspc: protect wsi from NULL not cwsi

This commit is contained in:
Andy Green 2020-08-17 16:25:29 +01:00
parent 83912f40e8
commit 52182da689

View file

@ -514,7 +514,7 @@ lws_sspc_destroy(lws_sspc_handle_t **ph)
if (h->cwsi) {
struct lws *wsi = h->cwsi;
h->cwsi = NULL;
if (h->cwsi)
if (wsi)
lws_set_timeout(wsi, 1, LWS_TO_KILL_SYNC);
}