avoid crash if we dont have new wsi
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
d07ea3bf40
commit
c949bb3b49
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue