From 0cc34318a773e1c714176b0c851366883a25d9f9 Mon Sep 17 00:00:00 2001 From: siddharth deore Date: Thu, 19 Feb 2026 13:09:03 +0100 Subject: [PATCH] Fixes uninitialised value was created by a stack allocation by ecx_setupnic (nicdrv.c:170) --- oshw/linux/nicdrv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/oshw/linux/nicdrv.c b/oshw/linux/nicdrv.c index 232fe60..09a12b7 100644 --- a/oshw/linux/nicdrv.c +++ b/oshw/linux/nicdrv.c @@ -167,6 +167,7 @@ int ecx_setupnic(ecx_portt *port, const char *ifname, int secondary) r |= ioctl(*psock, SIOCSIFFLAGS, &ifr); /* bind socket to protocol, in this case RAW EtherCAT */ + memset((void*)&sll, 0, sizeof(sll)); sll.sll_family = AF_PACKET; sll.sll_ifindex = ifindex; sll.sll_protocol = htons(ETH_P_ECAT);