Skip to content
Snippets Groups Projects
Commit c949bb3b authored by Andy Green's avatar Andy Green
Browse files

avoid crash if we dont have new wsi

parent d07ea3bf
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment