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:
parent
81a183800f
commit
338fb16ad5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user