diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2017-04-05 10:06:03 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-04-05 15:20:11 +0000 |
commit | fc5684149e63ddf41ea07e653e096aae476ccf68 (patch) | |
tree | 0b99fd9a16fbe004f272c8b0fb02d9ae1f047c58 /src/vnet/lisp-cp | |
parent | 25ad0ea266f03af1f4ec563a3de498bd49de6d61 (diff) |
LISP: fix crash when GPE interface is re-added, VPP-685
Change-Id: Ib83baf6ddec4ac192f6b4123d9eb599fb370fd0c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/lisp-cp')
-rw-r--r-- | src/vnet/lisp-cp/control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/lisp-cp/control.c b/src/vnet/lisp-cp/control.c index 3fda6ac250a..5c901f368c3 100644 --- a/src/vnet/lisp-cp/control.c +++ b/src/vnet/lisp-cp/control.c @@ -866,11 +866,11 @@ vnet_lisp_eid_table_map (u32 vni, u32 dp_id, u8 is_l2, u8 is_add) "mapping!", vni, dp_id); return -1; } - hash_unset (dp_table_by_vni[0], vni); - hash_unset (vni_by_dp_table[0], dp_id); - /* remove dp iface */ dp_add_del_iface (lcm, vni, is_l2, 0); + + hash_unset (dp_table_by_vni[0], vni); + hash_unset (vni_by_dp_table[0], dp_id); } return 0; |