From: Masahide NAKAMURA Date: Mon, 22 Oct 2007 09:30:15 +0000 (-0700) Subject: [IPSEC] IPV6: Fix to add tunnel mode SA correctly. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea2c47b42f12dadbad9d879fb6df102b9003ab82;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [IPSEC] IPV6: Fix to add tunnel mode SA correctly. Signed-off-by: Masahide NAKAMURA Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index 67cd06613a25..66a9139d46e9 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c @@ -483,6 +483,7 @@ static int ah6_init_state(struct xfrm_state *x) break; case XFRM_MODE_TUNNEL: x->props.header_len += sizeof(struct ipv6hdr); + break; default: goto error; } diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index b0715432e454..72a659806cad 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c @@ -360,6 +360,7 @@ static int esp6_init_state(struct xfrm_state *x) break; case XFRM_MODE_TUNNEL: x->props.header_len += sizeof(struct ipv6hdr); + break; default: goto error; }