summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/lisp-cp/control.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vnet/vnet/lisp-cp/control.c b/vnet/vnet/lisp-cp/control.c
index 53e8a75b4d6..f536560eae9 100644
--- a/vnet/vnet/lisp-cp/control.c
+++ b/vnet/vnet/lisp-cp/control.c
@@ -791,6 +791,9 @@ vnet_lisp_add_del_mapping (gid_address_t * deid, locator_t * rlocs, u8 action,
ls_args->index = old_map->locator_set_index;
/* delete locator set */
vnet_lisp_add_del_locator_set (ls_args, 0);
+
+ /* return old mapping index */
+ res_map_index[0] = mi;
}
/* success */