mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
fix missing callback return check
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
0a9bd7e971
commit
d8267a43b8
1 changed files with 5 additions and 0 deletions
|
@ -306,6 +306,11 @@ lws_http_action(struct lws *wsi)
|
|||
|
||||
n = wsi->protocol->callback(wsi, LWS_CALLBACK_HTTP,
|
||||
wsi->user_space, uri_ptr, uri_len);
|
||||
if (n) {
|
||||
lwsl_info("LWS_CALLBACK_HTTP closing\n");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* If we're not issuing a file, check for content_length or
|
||||
|
|
Loading…
Add table
Reference in a new issue