diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2025-01-22 11:13:21 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2025-02-11 09:49:33 +0100 |
| commit | e3474219fb3b84695f744ffb3509c981c8010aa5 (patch) | |
| tree | 543a4bb77d543cea710fe269277cd56f7c1f67b2 /grpc | |
| parent | 8aca554935c374e909a44af060f84346942214ef (diff) | |
bgpd: don't reuse nexthop variable in loop/switch
While the loop is currently exited in all cases after using nexthop, it
is a footgun to have "nh" around to be reused in another iteration of
the loop. This would leave nexthop with partial data from the previous
use. Make it local where needed instead.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit ce7f5b21221f0b3557d1f4a40793230d8bc4cf02)
Diffstat (limited to 'grpc')
0 files changed, 0 insertions, 0 deletions
