]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipv6: fix afinfo->route refcnt leak on error
authorFlorian Westphal <fw@strlen.de>
Wed, 19 Oct 2011 11:23:06 +0000 (13:23 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 1 Nov 2011 08:20:07 +0000 (09:20 +0100)
commit7823d27737d1e0628dd9d34edad5c05b39beb9d7
treecb37d01250683d4114e3ea9e21851447d22128ba
parenta22cabd120f82ebf41d2ff612b81cbcd5ca89c50
netfilter: ipv6: fix afinfo->route refcnt leak on error

Several callers (h323 conntrack, xt_addrtype) assume that the
returned **dst only needs to be released if the function returns 0.

This is true for the ipv4 implementation, but not for the ipv6 one.

Instead of changing the users, change the ipv6 implementation
to behave like the ipv4 version by only providing the dst_entry result
in the success case.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter.c