coverity 188322: confirm wsi->protocol non-NULL before CONNECTION_ERROR
This commit is contained in:
parent
da38a17a31
commit
5a8fca6f79
1 changed files with 1 additions and 1 deletions
|
@ -740,7 +740,7 @@ __lws_service_timeout_check(struct lws *wsi, time_t sec)
|
|||
* cleanup like flush partials.
|
||||
*/
|
||||
wsi->socket_is_permanently_unusable = 1;
|
||||
if (wsi->mode == LWSCM_WSCL_WAITING_SSL)
|
||||
if (wsi->mode == LWSCM_WSCL_WAITING_SSL && wsi->protocol)
|
||||
wsi->protocol->callback(wsi,
|
||||
LWS_CALLBACK_CLIENT_CONNECTION_ERROR,
|
||||
wsi->user_space,
|
||||
|
|
Loading…
Add table
Reference in a new issue