From: David S. Miller Date: Mon, 9 May 2011 21:49:13 +0000 (-0700) Subject: sctp: Remove rt->rt_src usage in sctp_v4_get_saddr() X-Git-Tag: MMI-PSA29.97-13-9~19691^2~115 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=902ebd3e0de618b6d39004edac00b2cc36362065;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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; } }