summaryrefslogtreecommitdiff
path: root/pathd/path_pcep_controller.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-12-12 15:08:35 -0500
committerDonald Sharp <sharpd@nvidia.com>2024-12-12 15:08:35 -0500
commit40c31bdf4092d45c23fc0e1eed9467015d224d2d (patch)
treebd945c214fc12048d9afee471294d9cf417cd507 /pathd/path_pcep_controller.c
parentf7720ab68fcfb24e7fa51f682d248086c45ef85a (diff)
bgpd: When calling bgp_process, prevent infinite loop
If we have this construct: for (pi = bgp_dest_get_bgp_path_info(dest); pi; pi = pi->next) { ... bgp_process(); } This can induce an infinite loop. This happens because bgp_process will move the unsorted items to the top of the list for handling, as such it is necessary to hold the next pointer to the side to actually look at each possible bgp_path_info. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pathd/path_pcep_controller.c')
0 files changed, 0 insertions, 0 deletions