Hannes Frederic Sowa 3e3be27585 ipv6: don't stop backtracking in fib6_lookup_1 if subtree does not match
In case a subtree did not match we currently stop backtracking and return
NULL (root table from fib_lookup). This could yield in invalid routing
table lookups when using subtrees.

Instead continue to backtrack until a valid subtree or node is found
and return this match.

Also remove unneeded NULL check.

Reported-by: Teco Boot <teco@inf-net.nl>
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Cc: David Lamparter <equinox@diac24.net>
Cc: <boutier@pps.univ-paris-diderot.fr>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-08-07 17:17:19 -07:00
..
2013-02-15 15:10:37 -05:00
2012-11-03 14:59:05 -04:00
2013-05-27 22:50:59 -07:00
2013-03-26 12:27:18 -04:00
2013-03-26 12:27:19 -04:00
2013-08-01 14:16:20 -07:00
2013-05-31 16:26:49 -07:00
2013-07-04 14:55:47 -07:00
2013-03-17 14:35:13 -04:00
2013-07-10 17:08:27 -07:00
2013-05-11 16:26:38 -07:00
2013-07-10 17:08:27 -07:00
2013-05-11 16:26:38 -07:00
2012-11-01 12:41:35 -04:00