mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lws_server_socket_service_ssl(context, &wsi, new_wsi, accept_fd, pollfd))
|
if (new_wsi)
|
||||||
goto fail;
|
if (lws_server_socket_service_ssl(context, &wsi, new_wsi,
|
||||||
|
accept_fd, pollfd))
|
||||||
|
goto fail;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue