diff options
author | Tobias Jungel <Tobias.Jungel@gmail.com> | 2015-11-19 15:50:14 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-11-19 16:48:10 (GMT) |
commit | acdeaf498d53d04ef4ca0e744b6c47e07e76c121 (patch) | |
tree | 4feca0dc86f5a434b3ccac13b4593773a0f26502 /lib/route/link/inet.c | |
parent | c96455b869442552c06d820c8d4cda6e8234873b (diff) | |
download | libnl-acdeaf498d53d04ef4ca0e744b6c47e07e76c121.zip libnl-acdeaf498d53d04ef4ca0e744b6c47e07e76c121.tar.gz libnl-acdeaf498d53d04ef4ca0e744b6c47e07e76c121.tar.bz2 |
route/link: corrected array size for inet_policy
Using now the macro for inet instead of inet6
Fixes: 53015f83811bd56d4b66331656633ad39051babf
https://github.com/thom311/libnl/pull/92
Diffstat (limited to 'lib/route/link/inet.c')
-rw-r--r-- | lib/route/link/inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link/inet.c b/lib/route/link/inet.c index 0a7990e..6651bc3 100644 --- a/lib/route/link/inet.c +++ b/lib/route/link/inet.c @@ -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 }, }; |