X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fipv6%2Ftunnel6.c;h=669f280989c351ce6c9b2e29ed934e1c3d02a937;hb=1730554f253deb65fe5112c54b2f898d5318a328;hp=6323921b40bec37bb474fefadc1d66f3586738d9;hpb=2843483d2eb02ad104edbe8b2429fb6a39d25063;p=linux-2.6 diff --git a/net/ipv6/tunnel6.c b/net/ipv6/tunnel6.c index 6323921b40..669f280989 100644 --- a/net/ipv6/tunnel6.c +++ b/net/ipv6/tunnel6.c @@ -109,7 +109,7 @@ static int tunnel46_rcv(struct sk_buff *skb) { struct xfrm6_tunnel *handler; - if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) + if (!pskb_may_pull(skb, sizeof(struct iphdr))) goto drop; for (handler = tunnel46_handlers; handler; handler = handler->next)