]> Git Repo - linux.git/commitdiff
[IPV4] TUNNEL4: Fix incoming packet length check for inter-protocol tunnel.
authorYOSHIFUJI Hideaki <[email protected]>
Fri, 30 May 2008 02:35:03 +0000 (11:35 +0900)
committerYOSHIFUJI Hideaki <[email protected]>
Wed, 4 Jun 2008 19:02:33 +0000 (04:02 +0900)
Signed-off-by: YOSHIFUJI Hideaki <[email protected]>
net/ipv4/tunnel4.c

index d3b709a6f2644e0ff400ff4dfe8dd80d66efce51..cb1f0e83830b408871139ca9a809b5320ea809b7 100644 (file)
@@ -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)
This page took 0.056796 seconds and 4 git commands to generate.