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:
parent
83912f40e8
commit
52182da689
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue