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
1 changed files with 1 additions and 1 deletions

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