Fixes uninitialised value was created by a stack allocation by ecx_setupnic (nicdrv.c:170)

This commit is contained in:
siddharth deore
2026-02-19 13:09:03 +01:00
committed by Hans-Erik Floryd
parent 791b782a59
commit 0cc34318a7

View File

@@ -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);