Commit baa2bfb8 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki

[IPV4] TUNNEL4: Fix incoming packet length check for inter-protocol tunnel.

Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
parent 82836372
...@@ -97,7 +97,7 @@ static int tunnel64_rcv(struct sk_buff *skb) ...@@ -97,7 +97,7 @@ static int tunnel64_rcv(struct sk_buff *skb)
{ {
struct xfrm_tunnel *handler; struct xfrm_tunnel *handler;
if (!pskb_may_pull(skb, sizeof(struct iphdr))) if (!pskb_may_pull(skb, sizeof(struct ipv6hdr)))
goto drop; goto drop;
for (handler = tunnel64_handlers; handler; handler = handler->next) for (handler = tunnel64_handlers; handler; handler = handler->next)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment