Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 902ebd3e authored by David S. Miller's avatar David S. Miller
Browse files

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



Flow key is available, so fetch it from there.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79ab0531
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}
}