From 4141a68f2373ab1ef4df128f47a2411d6437e45f Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 22 Jun 2021 16:47:57 +0100 Subject: [PATCH] ss: avoid null ss policy on req tx len --- lib/secure-streams/secure-streams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/secure-streams/secure-streams.c b/lib/secure-streams/secure-streams.c index 14dd1de6a..7f653a1d8 100644 --- a/lib/secure-streams/secure-streams.c +++ b/lib/secure-streams/secure-streams.c @@ -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))