mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +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…
Reference in New Issue
Block a user