Skip to content

Commit

Permalink
[IPV6]: Fix policy routing lookup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Sep 22, 2006
1 parent 6c813a7 commit 3226f68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/ipv6/fib6_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3226f68

Please sign in to comment.