aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index f988ae39c4c2..27e0f81060a7 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1559,7 +1559,7 @@ void ip_rt_get_source(u8 *addr, struct rtable *rt)
1559 1559
1560 if (rt->fl.iif == 0) 1560 if (rt->fl.iif == 0)
1561 src = rt->rt_src; 1561 src = rt->rt_src;
1562 else if (fib_lookup(&init_net, &rt->fl, &res) == 0) { 1562 else if (fib_lookup(rt->u.dst.dev->nd_net, &rt->fl, &res) == 0) {
1563 src = FIB_RES_PREFSRC(res); 1563 src = FIB_RES_PREFSRC(res);
1564 fib_res_put(&res); 1564 fib_res_put(&res);
1565 } else 1565 } else