mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
Don't use the hardware address to unicast if the address length is bogus
This commit is contained in:
@@ -132,7 +132,7 @@ void assemble_hw_header (interface, buf, bufix, to)
|
||||
{
|
||||
struct ether_header eh;
|
||||
|
||||
if (to)
|
||||
if (to && to -> hlen == 6) /* XXX */
|
||||
memcpy (eh.ether_dhost, to -> haddr, sizeof eh.ether_dhost);
|
||||
else
|
||||
memset (eh.ether_dhost, 0xff, sizeof (eh.ether_dhost));
|
||||
|
Reference in New Issue
Block a user