From abc8c3c68b45567b4bbc2c851a944b778e79331c Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Thu, 12 Dec 2019 09:28:52 +0100 Subject: [HICN-446] Face manager incorrectly sets up static routes in case of multihoming during startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifdf0bed4064d36b74129b929006b8c7ac9c56ebb Signed-off-by: Jordan Augé --- ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ctrl') diff --git a/ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c b/ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c index b4e1f0695..508c0713b 100644 --- a/ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c +++ b/ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c @@ -109,6 +109,10 @@ int hl_process_state(interface_t * interface) case HL_STATE_ROUTES_SENT: case HL_STATE_FACES_SENT: INFO("[hl_process_state] Out of sync... resetting state"); + if (data->polled_routes) { + hc_data_free(data->polled_routes); + data->polled_routes = NULL; + } data->state = HL_STATE_IDLE; break; -- cgit 1.2.3-korg