summaryrefslogtreecommitdiff
path: root/vrrpd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2025-01-22 11:13:21 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2025-02-11 09:49:33 +0100
commite3474219fb3b84695f744ffb3509c981c8010aa5 (patch)
tree543a4bb77d543cea710fe269277cd56f7c1f67b2 /vrrpd
parent8aca554935c374e909a44af060f84346942214ef (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 'vrrpd')
0 files changed, 0 insertions, 0 deletions