aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv6/ip6_fib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index 19ee7375daa9..b706424e70b8 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -899,7 +899,7 @@ struct fib6_node * fib6_lookup(struct fib6_node *root, struct in6_addr *daddr,
899 } 899 }
900 }; 900 };
901 901
902 fn = fib6_lookup_1(root, args); 902 fn = fib6_lookup_1(root, daddr ? args : args + 1);
903 903
904 if (fn == NULL || fn->fn_flags & RTN_TL_ROOT) 904 if (fn == NULL || fn->fn_flags & RTN_TL_ROOT)
905 fn = root; 905 fn = root;