Skip to content

Commit

Permalink
dccp: Use flowi4->saddr in dccp_v4_connect()
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
davem330 committed May 4, 2011
1 parent 475949d commit f139016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dccp/ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int dccp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len)
daddr = fl4.daddr;

if (inet->inet_saddr == 0)
inet->inet_saddr = rt->rt_src;
inet->inet_saddr = fl4.saddr;
inet->inet_rcv_saddr = inet->inet_saddr;

inet->inet_dport = usin->sin_port;
Expand Down

0 comments on commit f139016

Please sign in to comment.