Signed-off-by: Thomas Graf <[EMAIL PROTECTED]>
Index: net-2.6.14/net/ipv6/ip6_fib.c
===================================================================
--- net-2.6.14.orig/net/ipv6/ip6_fib.c
+++ net-2.6.14/net/ipv6/ip6_fib.c
@@ -623,18 +623,12 @@ static struct fib6_node * fib6_lookup_1(
while (!fib6_root_node(fn)) {
#ifdef CONFIG_IPV6_SUBTREES
- if (fn->subtree) {
+ if (fn->subtree && args[1].addr) {
struct fib6_node *st;
- struct lookup_args *narg;
- narg = args + 1;
-
- if (narg->addr) {
- st = fib6_lookup_1(fn->subtree, narg);
-
- if (st && !fib6_root_node(st))
- return st;
- }
+ st = fib6_lookup_1(fn->subtree, &args[1]);
+ if (st && !fib6_root_node(st))
+ return st;
}
#endif
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html