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

index 4aef8bd..2fa682a 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