mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 17:42:20 +00:00
isisd: fix potential null pointer in isis_affinity_map_update()
Reported by coverity scanner #1560315
Do not attempt to update the affinity map if the main isis struct is not
yet created.
Fixes: 9a65cf35da
("isisd: add affinity-map configuration hooks")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
eb74bbd5b3
commit
60f9275a8c
@ -49,6 +49,9 @@ static void isis_affinity_map_update(const char *affmap_name, uint16_t old_pos,
|
||||
struct flex_algo *fa;
|
||||
bool changed;
|
||||
|
||||
if (!isis)
|
||||
return;
|
||||
|
||||
for (ALL_LIST_ELEMENTS_RO(isis->area_list, area_node, area)) {
|
||||
changed = false;
|
||||
for (ALL_LIST_ELEMENTS_RO(area->flex_algos->flex_algos, fa_node,
|
||||
|
Loading…
Reference in New Issue
Block a user