Skip to content

Commit

Permalink
sctp: Remove rt->rt_src usage in sctp_v4_get_saddr()
Browse files Browse the repository at this point in the history
Flow key is available, so fetch it from there.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 10, 2011
1 parent 79ab053 commit 902ebd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ static void sctp_v4_get_saddr(struct sctp_sock *sk,

if (rt) {
saddr->v4.sin_family = AF_INET;
saddr->v4.sin_addr.s_addr = rt->rt_src;
saddr->v4.sin_addr.s_addr = fl->u.ip4.saddr;
}
}

Expand Down

0 comments on commit 902ebd3

Please sign in to comment.