1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

coverity: client_reset: no longer any way to get NULL *pwsi

Coverity belatedly noticed that client_reset no longer changes *pwsi
This commit is contained in:
Andy Green 2021-10-17 07:48:40 +01:00
parent f9fc45bd98
commit 3e1a1a443d

View file

@ -819,21 +819,9 @@ lws_client_interpret_server_handshake(struct lws *wsi)
}
if (!lws_client_reset(&wsi, ssl, ads, port, path, ads, 1)) {
/*
* There are two ways to fail out with NULL return...
* simple, early problem where the wsi is intact, or
* we went through with the reconnect attempt and the
* wsi is already closed. In the latter case, the wsi
* has been set to NULL additionally.
*/
lwsl_err("Redirect failed\n");
cce = "HS: Redirect failed";
/* coverity[reverse_inull] */
if (wsi)
goto bail3;
/* wsi has closed */
return 1;
goto bail3;
}
/*