mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix uninitialized value used in get_client_mac()
This commit is contained in:
committed by
Simon Kelley
parent
28b879ac47
commit
0705a7e2d5
@@ -246,6 +246,8 @@ void get_client_mac(struct in6_addr *client, int iface, unsigned char *mac, unsi
|
||||
neigh.code = 0;
|
||||
neigh.reserved = 0;
|
||||
neigh.target = *client;
|
||||
/* RFC4443 section-2.3: checksum has to be zero to be calculated */
|
||||
neigh.checksum = 0;
|
||||
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
#ifdef HAVE_SOCKADDR_SA_LEN
|
||||
|
||||
Reference in New Issue
Block a user