1
0
mirror of https://github.com/falk-werner/webfuse synced 2025-06-13 12:54:15 +00:00

fixes invalid read if www is not specified

This commit is contained in:
Falk Werner 2019-04-18 20:30:18 +02:00
parent 3a7c064af7
commit fbbd539143

View File

@ -18,6 +18,11 @@ static int wf_impl_server_protocol_callback(
size_t len)
{
struct lws_protocols const * ws_protocol = lws_get_protocol(wsi);
if (NULL == ws_protocol)
{
return 0;
}
struct wf_server_protocol * protocol = ws_protocol->user;
wf_impl_timeout_manager_check(&protocol->timeout_manager);