Skip to content

Commit

Permalink
ipv4: Fetch route saddr from flow key in inet_sk_reselect_saddr().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Apr 29, 2011
1 parent 6706b6e commit b883187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ static int inet_sk_reselect_saddr(struct sock *sk)

sk_setup_caps(sk, &rt->dst);

new_saddr = rt->rt_src;
new_saddr = fl4.saddr;

if (new_saddr == old_saddr)
return 0;
Expand Down

0 comments on commit b883187

Please sign in to comment.