- Linux Ethernet: fixed uninitialized memory

pull/331/head
Michael Zillgith 4 years ago
parent 8578344e85
commit 3514e08252

@ -124,6 +124,7 @@ static int
getInterfaceIndex(int sock, const char* deviceName)
{
struct ifreq ifr;
memset(&ifr, 0, sizeof(struct ifreq));
strncpy(ifr.ifr_name, deviceName, IFNAMSIZ - 1);

Loading…
Cancel
Save