mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
COVA11626: pwsi is not allowed to be NULL
This commit is contained in:
parent
cd56a4b97f
commit
e3f895a71d
1 changed files with 6 additions and 1 deletions
|
@ -789,7 +789,12 @@ lws_client_reset(struct lws **pwsi, int ssl, const char *address, int port,
|
|||
{
|
||||
char origin[300] = "", protocol[300] = "", method[32] = "",
|
||||
iface[16] = "", alpn[32] = "", *p;
|
||||
struct lws *wsi = *pwsi;
|
||||
struct lws *wsi;
|
||||
|
||||
if (!pwsi)
|
||||
return NULL;
|
||||
|
||||
wsi = *pwsi;
|
||||
|
||||
if (wsi->redirects == 3) {
|
||||
lwsl_err("%s: Too many redirects\n", __func__);
|
||||
|
|
Loading…
Add table
Reference in a new issue