mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
fixes invalid read if www is not specified (#28)
This commit is contained in:
parent
3a7c064af7
commit
f4180224b2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user