patch-1.3.10 linux/net/ipv4/ipip.c

Next file: linux/net/ipv4/route.c
Previous file: linux/net/ipv4/ip.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.9/linux/net/ipv4/ipip.c linux/net/ipv4/ipip.c
@@ -56,8 +56,8 @@
 #ifdef TUNNEL_DEBUG
 	printk("ipip_rcv: got a packet!\n");
 #endif
-	ip_forward(skb, dev, 0, daddr, 0);
-	kfree_skb(skb, FREE_READ);
+	if(ip_forward(skb, dev, 0, daddr, 0))
+		kfree_skb(skb, FREE_READ);
 	MOD_DEC_USE_COUNT;
 	return(0);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this