]> git.hungrycats.org Git - linux/commitdiff
[IPV6]: Missing ip_rt_put() in SIT error path.
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>
Sun, 3 Oct 2004 07:39:05 +0000 (00:39 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Sun, 3 Oct 2004 07:39:05 +0000 (00:39 -0700)
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c

index 2f89e1a411781e60f61c083c6baffacbbcae0e2a..1cedb6f03bffc8f1db4346ec57a99b1e55f68da3 100644 (file)
@@ -487,6 +487,7 @@ static int ipip6_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
                }
        }
        if (rt->rt_type != RTN_UNICAST) {
+               ip_rt_put(rt);
                tunnel->stat.tx_carrier_errors++;
                goto tx_error_icmp;
        }