Change-Id: Ifcd6d2caecce29c8b4605d06b9df82b36a403e74
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
vec_foreach (e, src)
{
- memset (dst, 0, sizeof (*dst));
- dst[i].dp_table = src->dp_table;
- dst[i].fwd_entry_index = src->fwd_entry_index;
- dst[i].vni = src->vni;
- dst[i].action = src->action;
+ memset (&dst[i], 0, sizeof (*dst));
+ dst[i].dp_table = e->dp_table;
+ dst[i].fwd_entry_index = e->fwd_entry_index;
+ dst[i].vni = e->vni;
+ dst[i].action = e->action;
switch (fid_addr_type (&e->leid))
{
case FID_ADDR_IP_PREF: