From: YOSHIFUJI Hideaki Date: Fri, 30 May 2008 02:35:03 +0000 (+0900) Subject: [IPV4] TUNNEL4: Fix incoming packet length check for inter-protocol tunnel. X-Git-Tag: v2.6.26-rc5~1^2~12^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=baa2bfb8aef24bb7fe1875b256918724b3884662;p=linux-2.6-omap-h63xx.git [IPV4] TUNNEL4: Fix incoming packet length check for inter-protocol tunnel. Signed-off-by: YOSHIFUJI Hideaki --- diff --git a/net/ipv4/tunnel4.c b/net/ipv4/tunnel4.c index d3b709a6f26..cb1f0e83830 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)