summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-09 23:49:13 +0200
committerDavid S. Miller <davem@davemloft.net>2011-05-10 22:32:47 +0200
commit902ebd3e0de618b6d39004edac00b2cc36362065 (patch)
tree907740c5c0ff7aba906141001d8c69209f5498a6
parentipv4: udp: Eliminate remaining uses of rt->rt_src (diff)
downloadlinux-902ebd3e0de618b6d39004edac00b2cc36362065.tar.xz
linux-902ebd3e0de618b6d39004edac00b2cc36362065.zip
sctp: Remove rt->rt_src usage in sctp_v4_get_saddr()
Flow key is available, so fetch it from there. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sctp/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 4f270ac48226..4de77cb80d88 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -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;
}
}