Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2014 05:45:58 +0000 (UTC)
From:      Bryan Venteicher <bryanv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273371 - head/sys/net
Message-ID:  <201410210545.s9L5jwbP048499@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410210545.s9L5jwbP048499>