Sfoglia il codice sorgente

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

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
YOSHIFUJI Hideaki 17 anni fa
parent
commit
baa2bfb8ae
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      net/ipv4/tunnel4.c

+ 1 - 1
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)