1
0
Fork 0
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:
Andy Green 2021-06-22 16:47:57 +01:00
parent 9bd8819045
commit c859b60854

View file

@ -1498,7 +1498,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))