Author: bryanv
Date: Tue Oct 21 05:45:57 2014
New Revision: 273371
URL: https://svnweb.freebsd.org/changeset/base/273371

Log:
  Use the size of the Ethernet address, not the entire header, when
  copying into forwarding entry.
  
  Reported by:  Coverity
  CID:          1248849

Modified:
  head/sys/net/if_vxlan.c

Modified: head/sys/net/if_vxlan.c
==============================================================================
--- head/sys/net/if_vxlan.c     Tue Oct 21 05:19:08 2014        (r273370)
+++ head/sys/net/if_vxlan.c     Tue Oct 21 05:45:57 2014        (r273371)
@@ -716,7 +716,7 @@ vxlan_ftable_entry_init(struct vxlan_sof
 
        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);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to