diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 539c6721f810154c992d23426eba6f1f11e3c3c5..000c4674e18e0169ffc810c5b22fc25ff0cc8958 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, struct fib_result *res) { if (!net->ipv4.fib_has_custom_rules) { + res->r = NULL; if (net->ipv4.fib_local && !fib_table_lookup(net->ipv4.fib_local, flp, res, FIB_LOOKUP_NOREF))