1
0
Fork 0
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:
Andy Green 2019-07-13 11:59:05 -07:00
parent cd56a4b97f
commit e3f895a71d

View file

@ -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__);