netfilter: ipvs: fix dst leak in __ip_vs_addr_is_local_v6
authorEric Dumazet <edumazet@google.com>
Sun, 24 Jun 2012 21:58:23 +0000 (21:58 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 25 Jun 2012 10:07:09 +0000 (12:07 +0200)
commitc24584c028a62900ea6b541b312030f0feac93b8
tree364ea1ad81607c37e85607d19a21c89eb32cc0ec
parentef5b6e127761667f78d99b7510a3876077fe9abe
netfilter: ipvs: fix dst leak in __ip_vs_addr_is_local_v6

After call to ip6_route_output() we must release dst or we leak it.

Also should test dst->error, as ip6_route_output() never returns NULL.

Use boolean while we are at it.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_ctl.c