Use the size of the Ethernet address, not the entire header, when

copying into forwarding entry.

Reported by:	Coverity
CID:		1248849
This commit is contained in:
bryanv 2014-10-21 05:45:57 +00:00
parent 78d7824866
commit d0cefd6466

View File

@ -716,7 +716,7 @@ vxlan_ftable_entry_init(struct vxlan_softc *sc, struct vxlan_ftable_entry *fe,
fe->vxlfe_flags = flags;
fe->vxlfe_expire = time_uptime + sc->vxl_ftable_timeout;
memcpy(fe->vxlfe_mac, mac, ETHER_HDR_LEN);
memcpy(fe->vxlfe_mac, mac, ETHER_ADDR_LEN);
vxlan_sockaddr_copy(&fe->vxlfe_raddr, sa);
}