From: Hannes Frederic Sowa <redacted>
Date: Wed, 7 Aug 2013 02:34:31 +0200
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 <redacted>
Cc: YOSHIFUJI Hideaki <redacted>
Cc: David Lamparter <redacted>
Cc: <redacted>
Signed-off-by: Hannes Frederic Sowa <redacted>
Applied and qeued up for -stable, thanks!