aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2017-04-27 14:29:27 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-04-27 15:21:49 +0000
commitfacee28032e329db691c68399ef6e3256132ddf0 (patch)
tree502c5a884e71c17ed112502d63dcaff6c3412588
parent1e19ee4458b652058a251b5094c72d57c03fb680 (diff)
LISP: fix deleting of locators, VPP-713
Change-Id: I4a2d24b7124dc9afaf81f29e06e43235a103a320 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
-rw-r--r--src/vnet/lisp-cp/control.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/lisp-cp/control.c b/src/vnet/lisp-cp/control.c
index 1ab39733e59..6408b297e3b 100644
--- a/src/vnet/lisp-cp/control.c
+++ b/src/vnet/lisp-cp/control.c
@@ -1515,6 +1515,10 @@ update_fwd_entries_by_locator_set (lisp_cp_main_t * lcm, u8 is_local,
{
u32 i, *map_indexp;
u32 **eid_indexes;
+
+ if (vec_len (lcm->locator_set_to_eids) <= ls_index)
+ return;
+
eid_indexes = vec_elt_at_index (lcm->locator_set_to_eids, ls_index);
for (i = 0; i < vec_len (eid_indexes[0]); i++)