diff options
author | Patrick McHardy <kaber@trash.net> | 2006-08-06 22:24:08 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 14:53:58 -0700 |
commit | 3226f6881719e61e00e92b4c85a8ef49aa4d42b1 (patch) | |
tree | 9070d7dcf78183e019a033c076fd335f4c37303c | |
parent | 6c813a7297e3af4cd7c3458e09e9ee3d161c6830 (diff) | |
download | kernel_samsung_aries-3226f6881719e61e00e92b4c85a8ef49aa4d42b1.zip kernel_samsung_aries-3226f6881719e61e00e92b4c85a8ef49aa4d42b1.tar.gz kernel_samsung_aries-3226f6881719e61e00e92b4c85a8ef49aa4d42b1.tar.bz2 |
[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>
-rw-r--r-- | 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 *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: |