From a31948b905ac20e1d85cda56fb3672b44d66305e Mon Sep 17 00:00:00 2001 From: Thomas Winter Date: Fri, 8 Jun 2018 15:43:53 +1200 Subject: [PATCH] ipgre: Fix wrong array size initialization IPv4 GRE tunnels use the GRE defines. Signed-off-by: Thomas Winter Fixes: 57bdc4ff4895dd91cc723d22eecadcf48945e87c --- lib/route/link/ipgre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0