mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 21:23:06 +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 listnode *node;
|
||||||
struct isis_adjacency *adj;
|
struct isis_adjacency *adj;
|
||||||
|
|
||||||
|
if (!adjdb)
|
||||||
|
continue;
|
||||||
for (ALL_LIST_ELEMENTS_RO(adjdb, node, adj))
|
for (ALL_LIST_ELEMENTS_RO(adjdb, node, adj))
|
||||||
bfd_adj_cmd(adj);
|
bfd_adj_cmd(adj);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user