Skip to content
Snippets Groups Projects
Commit e17820cf authored by Frank May's avatar Frank May Committed by Andy Green
Browse files

windows: fix possible crash

Checking for (!wsi) does not make sense, if wsi is
dereferenced in the line above.
parent fab4bff4
No related branches found
No related tags found
No related merge requests found
......@@ -82,9 +82,9 @@ _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
continue;
wsi = wsi_from_fd(context, pfd->fd);
if (wsi->listener)
if (!wsi || wsi->listener)
continue;
if (!wsi || wsi->sock_send_blocking)
if (wsi->sock_send_blocking)
continue;
pfd->revents = LWS_POLLOUT;
n = lws_service_fd(context, pfd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment