]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Fixing infinite loop when listing OSPF interfaces 14570/head
authorRodrigo Nardi <rnardi@netdef.org>
Mon, 18 Sep 2023 20:40:35 +0000 (17:40 -0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Wed, 11 Oct 2023 14:29:07 +0000 (14:29 +0000)
commit254885156b1131b7cb358248947c2c72d4f271bd
tree17eab413f782ec7eb85c5e81d06d5a69b5a26b36
parentb06b4fff332f1aef1688f696d298ccacbfd8da91
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>
(cherry picked from commit e0dbeff5bc599be0dfade8256b53dcfef4435bc8)
ospfd/ospfd.c