mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 16:06:20 +00:00
isisd: prevent from accessing a non initialised pointer
When using bfd on a single level, one may access a null pointer list. Prevent from using it. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
4037154240
commit
a514ac486a
@ -168,6 +168,8 @@ void isis_bfd_circuit_cmd(struct isis_circuit *circuit)
|
||||
struct listnode *node;
|
||||
struct isis_adjacency *adj;
|
||||
|
||||
if (!adjdb)
|
||||
continue;
|
||||
for (ALL_LIST_ELEMENTS_RO(adjdb, node, adj))
|
||||
bfd_adj_cmd(adj);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user