1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

network/nexthop: refuse id == 0 earlier

All requested nexthop has a non-zero ID.
This commit is contained in:
Yu Watanabe 2024-01-05 05:01:05 +09:00
parent 81a183800f
commit 338fb16ad5

View File

@ -269,6 +269,9 @@ static int nexthop_get_request_by_id(Manager *manager, uint32_t id, Request **re
assert(manager);
if (id == 0)
return -EINVAL;
req = ordered_set_get(
manager->request_queue,
&(Request) {