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:
d07ea3b
)
avoid crash if we dont have new wsi
author
Andy Green
<andy.green@linaro.org>
Tue, 29 Jul 2014 15:02:07 +0000
(23:02 +0800)
committer
Andy Green
<andy.green@linaro.org>
Tue, 29 Jul 2014 15:02:07 +0000
(23:02 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/server.c
patch
|
blob
|
history
diff --git
a/lib/server.c
b/lib/server.c
index
5f8749f
..
d6a65cf
100644
(file)
--- a/
lib/server.c
+++ b/
lib/server.c
@@
-731,8
+731,10
@@
int lws_server_socket_service(struct libwebsocket_context *context,
break;
}
- if (lws_server_socket_service_ssl(context, &wsi, new_wsi, accept_fd, pollfd))
- goto fail;
+ if (new_wsi)
+ if (lws_server_socket_service_ssl(context, &wsi, new_wsi,
+ accept_fd, pollfd))
+ goto fail;
return 0;