mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
fix missing callback return check
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
d2a95e0c82
commit
b55ea5eaed
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,
|
n = wsi->protocol->callback(wsi, LWS_CALLBACK_HTTP,
|
||||||
wsi->user_space, uri_ptr, uri_len);
|
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
|
* If we're not issuing a file, check for content_length or
|
||||||
|
|
Loading…
Add table
Reference in a new issue