Skip to content

Commit

Permalink
[IPV4] TUNNEL4: Fix incoming packet length check for inter-protocol t…
Browse files Browse the repository at this point in the history
…unnel.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
  • Loading branch information
YOSHIFUJI Hideaki committed Jun 4, 2008
1 parent 8283637 commit baa2bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/tunnel4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit baa2bfb

Please sign in to comment.