netfilter: ip6t_REJECT: fix a dst leak in ipv6 REJECT
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 2 Jul 2010 08:05:01 +0000 (10:05 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:18:50 +0000 (10:18 -0700)
commit30b816a516ba96aa85ce0290aa63cebd3d258b72
tree0e3a95a481ebba7e63cde1479bf766b6f21b65fb
parente75c279c6760282546dbc794b8368d6a8ff12c92
netfilter: ip6t_REJECT: fix a dst leak in ipv6 REJECT

commit 499031ac8a3df6738f6186ded9da853e8ea18253 upstream.

We should release dst if dst->error is set.

Bug introduced in 2.6.14 by commit e104411b82f5c
([XFRM]: Always release dst_entry on error in xfrm_lookup)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv6/netfilter/ip6t_REJECT.c