mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 02:04:05 +08:00
sctp: fix ignoring asoc_id for tcp-style sockets on SCTP_DEFAULT_SNDINFO sockopt
A similar fix as Patch "sctp: fix ignoring asoc_id for tcp-style sockets on
SCTP_DEFAULT_SEND_PARAM sockopt" on SCTP_DEFAULT_SNDINFO sockopt.
Fixes: 92fc3bd928
("sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for SCTP_DEFAULT_SNDINFO sockopt")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8e2614fc1c
commit
a842e65b25
@ -3087,6 +3087,9 @@ static int sctp_setsockopt_default_sndinfo(struct sock *sk,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (sctp_style(sk, TCP))
|
||||
info.snd_assoc_id = SCTP_FUTURE_ASSOC;
|
||||
|
||||
if (info.snd_assoc_id == SCTP_FUTURE_ASSOC ||
|
||||
info.snd_assoc_id == SCTP_ALL_ASSOC) {
|
||||
sp->default_stream = info.snd_sid;
|
||||
|
Loading…
Reference in New Issue
Block a user