mirror of
https://gitee.com/openharmony/third_party_libnl
synced 2024-11-30 13:40:43 +00:00
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:
parent
c96455b869
commit
acdeaf498d
@ -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 },
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user