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:
parent
fd8b318ab6
commit
854f7e89e6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user