[IPV6]: Fix policy routing lookup When the lookup in a table returns ip6_null_entry the policy routing lookup returns it instead of continuing in the next table, which effectively means it only searches the local table.
Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]> --- commit f5d49889512f24f3819c6aa1e0dca72061b372fe tree 489216e0f5d31ed37d3f3cee40475b2672ad7c70 parent d3ddd45b230e8b56873c77d266004fec49c44f8b author Patrick McHardy <[EMAIL PROTECTED]> Mon, 07 Aug 2006 06:57:55 +0200 committer Patrick McHardy <[EMAIL PROTECTED]> Mon, 07 Aug 2006 06:57:55 +0200 net/ipv6/fib6_rules.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index c3c8195..94a46ec 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c @@ -94,8 +94,10 @@ int fib6_rule_action(struct fib_rule *ru if (rt != &ip6_null_entry) goto out; - dst_release(&rt->u.dst); + rt = NULL; + goto out; + discard_pkt: dst_hold(&rt->u.dst); out: