aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/ip_fib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
index 539c6721f810..000c4674e18e 100644
--- a/include/net/ip_fib.h
+++ b/include/net/ip_fib.h
@@ -230,6 +230,7 @@ static inline int fib_lookup(struct net *net, struct flowi4 *flp,
230 struct fib_result *res) 230 struct fib_result *res)
231{ 231{
232 if (!net->ipv4.fib_has_custom_rules) { 232 if (!net->ipv4.fib_has_custom_rules) {
233 res->r = NULL;
233 if (net->ipv4.fib_local && 234 if (net->ipv4.fib_local &&
234 !fib_table_lookup(net->ipv4.fib_local, flp, res, 235 !fib_table_lookup(net->ipv4.fib_local, flp, res,
235 FIB_LOOKUP_NOREF)) 236 FIB_LOOKUP_NOREF))