LISP: fix GPE entry dump, VPP-871 95/6995/1
authorFilip Tehlar <ftehlar@cisco.com>
Mon, 5 Jun 2017 07:50:38 +0000 (09:50 +0200)
committerFilip Tehlar <ftehlar@cisco.com>
Mon, 5 Jun 2017 07:50:38 +0000 (09:50 +0200)
Change-Id: Ifcd6d2caecce29c8b4605d06b9df82b36a403e74
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
src/vnet/lisp-gpe/lisp_gpe_api.c

index 9edffa1..e2c055b 100644 (file)
@@ -198,11 +198,11 @@ gpe_fwd_entries_copy (vl_api_gpe_fwd_entry_t * dst,
 
   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: