31 lines
920 B
Diff
31 lines
920 B
Diff
From a31948b905ac20e1d85cda56fb3672b44d66305e Mon Sep 17 00:00:00 2001
|
|
From: Thomas Winter <Thomas.Winter@alliedtelesis.co.nz>
|
|
Date: Fri, 8 Jun 2018 15:43:53 +1200
|
|
Subject: [PATCH 55/76] 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
|
|
---
|
|
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;
|
|
|
|
--
|
|
1.8.3.1
|
|
|