diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-12-12 09:28:52 +0100 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-12-12 09:28:52 +0100 |
commit | abc8c3c68b45567b4bbc2c851a944b778e79331c (patch) | |
tree | d8657dc217bc662ce3de446485c3713025a4192d /ctrl/facemgr | |
parent | 631e07d8a53e77370da5e0273ddfc66789de867d (diff) |
[HICN-446] Face manager incorrectly sets up static routes in case of multihoming during startup
Change-Id: Ifdf0bed4064d36b74129b929006b8c7ac9c56ebb
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'ctrl/facemgr')
-rw-r--r-- | ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |