[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 <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Patrick McHardy 2006-08-06 22:24:08 -07:00 committed by David S. Miller
parent 6c813a7297
commit 3226f68817

View File

@ -94,8 +94,10 @@ int fib6_rule_action(struct fib_rule *rule, struct flowi *flp,
if (rt != &ip6_null_entry)
goto out;
dst_release(&rt->u.dst);
rt = NULL;
goto out;
discard_pkt:
dst_hold(&rt->u.dst);
out: