提交 902ebd3e 编写于 作者: D David S. Miller

sctp: Remove rt->rt_src usage in sctp_v4_get_saddr()

Flow key is available, so fetch it from there.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 79ab0531
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册