]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV6]: Fix policy routing lookup
authorPatrick McHardy <kaber@trash.net>
Mon, 7 Aug 2006 05:24:08 +0000 (22:24 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:53:58 +0000 (14:53 -0700)
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>
net/ipv6/fib6_rules.c

index c3c8195744ee43d7635f95368762b19810f8462f..94a46ec967a41a9bac8c428f4ff3b466263183c6 100644 (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: