mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ss: avoid null ss policy on req tx len
This commit is contained in:
parent
de8185db9f
commit
4141a68f23
1 changed files with 1 additions and 1 deletions
|
@ -1480,7 +1480,7 @@ _lws_ss_request_tx(lws_ss_handle_t *h)
|
|||
lws_ss_state_return_t
|
||||
lws_ss_request_tx_len(lws_ss_handle_t *h, unsigned long len)
|
||||
{
|
||||
if (h->wsi &&
|
||||
if (h->wsi && h->policy &&
|
||||
(h->policy->protocol == LWSSSP_H1 ||
|
||||
h->policy->protocol == LWSSSP_H2 ||
|
||||
h->policy->protocol == LWSSSP_WS))
|
||||
|
|
Loading…
Add table
Reference in a new issue