1
1
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:
Yu Watanabe 2020-06-25 13:17:37 +09:00
parent 25b831bac8
commit e856ed00f9

View File

@ -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));