From edc772fa7b2dcc7a06d4fee9076130e01501df86 Mon Sep 17 00:00:00 2001 From: nobruinfo Date: Sun, 18 Oct 2026 21:35:49 +0200 Subject: [PATCH] #244 etherload_common.c missing index --- src/tools/etherload/etherload_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/etherload/etherload_common.c b/src/tools/etherload/etherload_common.c index d6fd306..d0ad8c1 100644 --- a/src/tools/etherload/etherload_common.c +++ b/src/tools/etherload/etherload_common.c @@ -237,7 +237,7 @@ int probe_mega65_ipv6_address(int timeout_ms) for (int idx = 0; idx < num_if; ++idx) { // creating an IPv6 UDP server socket and listen on port 4510 for incoming packets discoverfd[idx] = socket(AF_INET6, SOCK_DGRAM, 0); - if (discoverfd < 0) { + if (discoverfd[idx] < 0) { log_crit("Unable to create socket"); goto leave_probe_mega65; }