xt_TEE: free skb when route lookup failed

This commit is contained in:
Jan Engelhardt
2010-03-27 00:17:52 +01:00
parent ba35636718
commit 7338a2a400
2 changed files with 3 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ HEAD
- TEE: do rechecksumming in PREROUTING too
- TEE: decrease TTL on cloned packet
- TEE: set dont-fragment on cloned packets
- TEE: free skb when route lookup failed
Xtables-addons 1.24 (March 17 2010)

View File

@@ -76,6 +76,7 @@ tee_tg_route4(struct sk_buff *skb, const struct xt_tee_tginfo *info)
if (net_ratelimit())
pr_debug(KBUILD_MODNAME
": could not route packet (%d)", err);
kfree_skb(skb);
return false;
}
@@ -249,6 +250,7 @@ tee_tg_route6(struct sk_buff *skb, const struct xt_tee_tginfo *info)
if (dst == NULL) {
if (net_ratelimit())
printk(KERN_ERR "ip6_route_output failed for tee\n");
kfree_skb(skb);
return false;
}