From 00078ca97880ac0ccd5cc70954248dbdcd8e48e1 Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Thu, 9 Jan 2020 12:59:21 +0100 Subject: [HICN-468] FIB entry improperly cleared by MAP-Me in multihoming situations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibf57032fccb8ea09322a2b4f447ea24db7b69986 Signed-off-by: Jordan Augé --- hicn-light/src/hicn/core/mapme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hicn-light/src/hicn/core/mapme.c b/hicn-light/src/hicn/core/mapme.c index a0a34e8ce..e426e7575 100644 --- a/hicn-light/src/hicn/core/mapme.c +++ b/hicn-light/src/hicn/core/mapme.c @@ -783,8 +783,8 @@ static bool mapme_onSpecialInterest(const MapMe *mapme, mapmeTFIB_Remove(TFIB(fibEntry), conn_in_id); /* Remove all next hops */ - for (size_t k = 0; k < numberSet_Length(nexthops_old); k++) { - unsigned conn_id = numberSet_GetItem(nexthops_old, k); + for (size_t k = 0; k < numberSet_Length(nexthops); k++) { + unsigned conn_id = numberSet_GetItem(nexthops, k); INFO(mapme, "[MAP-Me] - Replaced next hops by connection %d", conn_id); fibEntry_RemoveNexthopByConnectionId(fibEntry, conn_id); } -- cgit 1.2.3-korg