diff options
author | Thomas Winter <Thomas.Winter@alliedtelesis.co.nz> | 2018-06-08 03:43:53 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-06-25 13:07:46 (GMT) |
commit | a31948b905ac20e1d85cda56fb3672b44d66305e (patch) | |
tree | b893ce21267c76c0cf5bfff5d0ad04d6e19ae3f3 | |
parent | a153517c5cae97c937feddf1e9b53e29efe009b7 (diff) | |
download | libnl-a31948b905ac20e1d85cda56fb3672b44d66305e.zip libnl-a31948b905ac20e1d85cda56fb3672b44d66305e.tar.gz libnl-a31948b905ac20e1d85cda56fb3672b44d66305e.tar.bz2 |
ipgre: Fix wrong array size initialization
IPv4 GRE tunnels use the GRE defines.
Signed-off-by: Thomas Winter <Thomas.Winter@alliedtelesis.co.nz>
Fixes: 57bdc4ff4895dd91cc723d22eecadcf48945e87c
-rw-r--r-- | lib/route/link/ipgre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link/ipgre.c b/lib/route/link/ipgre.c index 6551323..a7665fe 100644 --- a/lib/route/link/ipgre.c +++ b/lib/route/link/ipgre.c @@ -91,7 +91,7 @@ static int ipgre_alloc(struct rtnl_link *link) static int ipgre_parse(struct rtnl_link *link, struct nlattr *data, struct nlattr *xstats) { - struct nlattr *tb[IFLA_IPTUN_MAX + 1]; + struct nlattr *tb[IFLA_GRE_MAX + 1]; struct ipgre_info *ipgre; int err; |