network/nexthop: do not assign invalid ID
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Dec 2023 16:59:34 +0000 (01:59 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Dec 2023 09:57:43 +0000 (18:57 +0900)
commitc624143b5950dedc7b210065f0fee53873d396c5
tree350516892054e5775595b1984deccacacd61371a
parent58830ef5ebe9c933dd230ffcdb97a77451abc967
network/nexthop: do not assign invalid ID

This also reduces the scope of the iterator.
src/network/networkd-nexthop.c