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:
parent
f9fc45bd98
commit
3e1a1a443d
1 changed files with 1 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue