From e52b09e33a5ad3a2424ee0194273c5f5bec88968 Mon Sep 17 00:00:00 2001 From: Tero Marttila Date: Mon, 30 Dec 2024 00:46:29 +0200 Subject: [PATCH] leds api: check http_request_query err --- main/leds_http.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/leds_http.c b/main/leds_http.c index c289b5af..6dab7f3f 100644 --- a/main/leds_http.c +++ b/main/leds_http.c @@ -167,6 +167,11 @@ int leds_api_query(struct http_request *request, struct leds_api_query *query) } } + if (err < 0) { + LOG_WARN("http_request_query"); + return err; + } + if (!query->state) { LOG_WARN("missing ?leds=..."); return HTTP_UNPROCESSABLE_ENTITY;