route/link: corrected array size for inet_policy

Using now the macro for inet instead of inet6

Fixes: 53015f8381

https://github.com/thom311/libnl/pull/92
This commit is contained in:
Tobias Jungel 2015-11-19 16:50:14 +01:00 committed by Thomas Haller
parent c96455b869
commit acdeaf498d

View File

@ -92,7 +92,7 @@ static void inet_free(struct rtnl_link *link, void *data)
free(data);
}
static struct nla_policy inet_policy[IFLA_INET6_MAX+1] = {
static struct nla_policy inet_policy[IFLA_INET_MAX+1] = {
[IFLA_INET_CONF] = { .minlen = 4 },
};