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
This commit is contained in:
parent
cf2dbdc6a0
commit
9bd8819045
1 changed files with 6 additions and 0 deletions
|
@ -1443,6 +1443,12 @@ _lws_ss_request_tx(lws_ss_handle_t *h)
|
|||
return LWSSSSRET_OK;
|
||||
}
|
||||
|
||||
if (!h->policy) {
|
||||
/* avoid crash */
|
||||
lwsl_err("%s: null policy\n", __func__);
|
||||
return LWSSSSRET_OK;
|
||||
}
|
||||
|
||||
if (h->policy->flags & LWSSSPOLF_SERVER)
|
||||
return LWSSSSRET_OK;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue