2
0
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:
Ted Lemon
1996-06-27 19:10:41 +00:00
parent efa253d0db
commit 52d75293ab
2 changed files with 2 additions and 2 deletions

View File

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