fix missing callback return check
authorAndy Green <andy.green@linaro.org>
Thu, 25 Feb 2016 12:23:45 +0000 (20:23 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 25 Feb 2016 12:23:45 +0000 (20:23 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/server.c

index cc846d4..1d044ff 100644 (file)
@@ -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