From: Louis Scalbert Date: Mon, 17 Oct 2022 16:40:42 +0000 (+0200) Subject: isisd: fix recreating the LS TED after re-enabling MPLS TE X-Git-Tag: base_8.5~312^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F12151%2Fhead;p=mirror%2Ffrr.git isisd: fix recreating the LS TED after re-enabling MPLS TE When disabling and re-enabling the "mpls-te on" command, the LS TED database is deleted but not re-created. Cleanup the LS TED database instead of deleting it when disabling "mpls-te". Fixes: 1fa6385040.. ("isisd: Correct Valgrind errors") Signed-off-by: Louis Scalbert --- diff --git a/isisd/isis_te.c b/isisd/isis_te.c index c7a179255c..155d1e6fed 100644 --- a/isisd/isis_te.c +++ b/isisd/isis_te.c @@ -138,7 +138,7 @@ void isis_mpls_te_disable(struct isis_area *area) area->mta->status = disable; /* Remove Link State Database */ - ls_ted_del_all(&area->mta->ted); + ls_ted_clean(area->mta->ted); /* Disable Extended SubTLVs on all circuit */ for (ALL_LIST_ELEMENTS_RO(area->circuit_list, node, circuit)) {