projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46d9b8e
)
plat win be robust against NULL wsi_from_fd 2
author
Andy Green
<andy.green@linaro.org>
Fri, 13 Nov 2015 03:43:53 +0000
(11:43 +0800)
committer
Andy Green
<andy.green@linaro.org>
Fri, 13 Nov 2015 03:43:53 +0000
(11:43 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/lws-plat-win.c
patch
|
blob
|
history
diff --git
a/lib/lws-plat-win.c
b/lib/lws-plat-win.c
index
5295679
..
afb640d
100644
(file)
--- a/
lib/lws-plat-win.c
+++ b/
lib/lws-plat-win.c
@@
-197,8
+197,10
@@
lws_plat_service(struct libwebsocket_context *context, int timeout_ms)
pfd->revents = networkevents.lNetworkEvents;
- if (pfd->revents & LWS_POLLOUT)
- wsi_from_fd(context,pfd->fd)->sock_send_blocking = FALSE;
+ if (pfd->revents & LWS_POLLOUT) {
+ wsi = wsi_from_fd(context, pfd->fd);
+ wsi->sock_send_blocking = FALSE;
+ }
return libwebsocket_service_fd(context, pfd);
}