commit | baa2bfb8aef24bb7fe1875b256918724b3884662 | [log] [tgz] |
---|---|---|
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | Fri May 30 11:35:03 2008 +0900 |
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | Thu Jun 05 04:02:33 2008 +0900 |
tree | 03d94dc1da25b83f5aa734a6730d26554812ee77 | |
parent | 82836372311a5cbf9cc5f4f47f9b56cb9edfe90d [diff] |
[IPV4] TUNNEL4: Fix incoming packet length check for inter-protocol tunnel. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
diff --git a/net/ipv4/tunnel4.c b/net/ipv4/tunnel4.c index d3b709a..cb1f0e8 100644 --- a/net/ipv4/tunnel4.c +++ b/net/ipv4/tunnel4.c
@@ -97,7 +97,7 @@ { 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)