From 2d01b8b7d765a69658a6aa21476e776847faf9d8 Mon Sep 17 00:00:00 2001 From: DrDoof <8052722+DrDoof@users.noreply.github.com> Date: Mon, 5 Oct 2026 04:35:07 +0200 Subject: [PATCH] httpd: drop a test in send_vlanlist() that can never be true vlan_get() only returns an error for VLAN 4095 and up, and the loop stops at 4094. --- httpd/page_impl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/httpd/page_impl.c b/httpd/page_impl.c index fe5ccced..26a7eb94 100644 --- a/httpd/page_impl.c +++ b/httpd/page_impl.c @@ -1118,8 +1118,7 @@ void send_vlanlist(void) slen += strtox(outbuf + slen, ",\"vlan\":["); for (i = 1; i < 4095; i++) { - if (vlan_get(i) < 0) - continue; + vlan_get(i); if (!(sfr_data[0] & 0x02)) /* bit 1: VLAN table entry valid */ continue;