aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-04-29 02:16:53 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-29 02:16:53 -0400
commitb883187785004cacea053569f1655fada0dfc299 (patch)
tree8a3413e40ad0e22e82ca96f9f9f7087070a21467 /net/ipv4/af_inet.c
parent6706b6ebab85dfca4e2886e35ec9c3c4ee13e27e (diff)
ipv4: Fetch route saddr from flow key in inet_sk_reselect_saddr().
Now that output route lookups update the flow with source address selection, we can fetch it from fl4->saddr instead of rt->rt_src Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r--net/ipv4/af_inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 963a621e75c7..4e734992e266 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1122,7 +1122,7 @@ static int inet_sk_reselect_saddr(struct sock *sk)
1122 1122
1123 sk_setup_caps(sk, &rt->dst); 1123 sk_setup_caps(sk, &rt->dst);
1124 1124
1125 new_saddr = rt->rt_src; 1125 new_saddr = fl4.saddr;
1126 1126
1127 if (new_saddr == old_saddr) 1127 if (new_saddr == old_saddr)
1128 return 0; 1128 return 0;