mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
network: fix assertion in link_get()
This commit is contained in:
parent
25b831bac8
commit
e856ed00f9
@ -752,7 +752,7 @@ int link_get(Manager *m, int ifindex, Link **ret) {
|
||||
Link *link;
|
||||
|
||||
assert(m);
|
||||
assert(ifindex);
|
||||
assert(ifindex > 0);
|
||||
assert(ret);
|
||||
|
||||
link = hashmap_get(m->links, INT_TO_PTR(ifindex));
|
||||
|
Loading…
x
Reference in New Issue
Block a user