diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-12-12 15:08:35 -0500 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-12-13 04:03:45 +0000 |
| commit | c71114ff7f37481eac0338cdfe9e276f6e9f5cfd (patch) | |
| tree | 56bd3c48b1c253b0d65d3caab91e665c1428591e /python/firstheader.py | |
| parent | 90de7a4ece16f3d6441fd7311197fcedc9dde7a7 (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>
(cherry picked from commit 40c31bdf4092d45c23fc0e1eed9467015d224d2d)
Diffstat (limited to 'python/firstheader.py')
0 files changed, 0 insertions, 0 deletions
