From ea9df4f8ee0f0677b6c47111045019f5d5f05241 Mon Sep 17 00:00:00 2001 From: Christian Meffert Date: Fri, 27 Dec 2024 17:37:22 +0000 Subject: [PATCH] [httpd] Fix infinite loop with more than one ws connection --- src/httpd_libevhttp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpd_libevhttp.c b/src/httpd_libevhttp.c index 4dea9247..a0d4204a 100644 --- a/src/httpd_libevhttp.c +++ b/src/httpd_libevhttp.c @@ -195,7 +195,7 @@ ws_listener_cb(void *arg, int *ret) char *reply = NULL; short *event_mask = arg; - for (client = ws_clients; client; client = ws_clients->next) + for (client = ws_clients; client; client = client->next) { reply = ws_create_notify_reply(*event_mask, &client->requested_events); evws_send_text(client->evws, reply);