mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 15:36:25 +00:00
isisd: fix wrong pointer test in area_resign_level()
Fix a wrong pointer test issue reported by coverity scanner #1560314
Fixes: 860b75b40e
("isisd: calculate flex-algo constraint spf")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
eb2010de2a
commit
eb74bbd5b3
@ -3144,7 +3144,7 @@ static void area_resign_level(struct isis_area *area, int level)
|
||||
for (ALL_LIST_ELEMENTS_RO(area->flex_algos->flex_algos, node,
|
||||
fa)) {
|
||||
data = fa->data;
|
||||
if (data->spftree[level - 1]) {
|
||||
if (data->spftree[tree][level - 1]) {
|
||||
isis_spftree_del(
|
||||
data->spftree[tree][level - 1]);
|
||||
data->spftree[tree][level - 1] = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user