summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tunnel4.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-05-30 04:35:03 +0200
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-06-04 21:02:33 +0200
commitbaa2bfb8aef24bb7fe1875b256918724b3884662 (patch)
tree03d94dc1da25b83f5aa734a6730d26554812ee77 /net/ipv4/tunnel4.c
parent[IPV6] TUNNEL6: Fix incoming packet length check for inter-protocol tunnel. (diff)
downloadlinux-baa2bfb8aef24bb7fe1875b256918724b3884662.tar.xz
linux-baa2bfb8aef24bb7fe1875b256918724b3884662.zip
[IPV4] TUNNEL4: Fix incoming packet length check for inter-protocol tunnel.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to '')
-rw-r--r--net/ipv4/tunnel4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tunnel4.c b/net/ipv4/tunnel4.c
index d3b709a6f264..cb1f0e83830b 100644
--- a/net/ipv4/tunnel4.c
+++ b/net/ipv4/tunnel4.c
@@ -97,7 +97,7 @@ static int tunnel64_rcv(struct sk_buff *skb)
{
struct xfrm_tunnel *handler;
- if (!pskb_may_pull(skb, sizeof(struct iphdr)))
+ if (!pskb_may_pull(skb, sizeof(struct ipv6hdr)))
goto drop;
for (handler = tunnel64_handlers; handler; handler = handler->next)