diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2025-01-22 11:13:21 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2025-01-29 16:48:37 +0100 |
| commit | ce7f5b21221f0b3557d1f4a40793230d8bc4cf02 (patch) | |
| tree | 1b664f2678243f09e2fd1e8f1bc0578be3b1de72 /zebra/zebra_errors.c | |
| parent | f849511c47783b1554918dd0e8ccdd63e769ef61 (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>
Diffstat (limited to 'zebra/zebra_errors.c')
0 files changed, 0 insertions, 0 deletions
