]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Fixing infinite loop when listing OSPF interfaces 14437/head
authorRodrigo Nardi <rnardi@netdef.org>
Mon, 18 Sep 2023 20:40:35 +0000 (17:40 -0300)
committerRodrigo Nardi <rnardi@netdef.org>
Tue, 10 Oct 2023 18:39:59 +0000 (15:39 -0300)
commite0dbeff5bc599be0dfade8256b53dcfef4435bc8
tree51b6332af336d06d1d3bae80e4a0c6e78fd11784
parentd2324b7b4a02e9ef6a219578567932addeb7f593
ospfd: Fixing infinite loop when listing OSPF interfaces

The problem was happening because the ospf->oiflist has this behaviour, each interface was removed and added at the end of the list in each ospf_network_run_subnet call, generation an infinite loop.
As a solution, a copy of the list was generated and we interacted with a fixed list.

Signed-off-by: Rodrigo Nardi <rnardi@netdef.org>
ospfd/ospfd.c