1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

Fix a bug in sctp_sendmsgx(), where the sid provided by the user

was hot honored.

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2016-12-07 21:24:49 +00:00
parent 49656eefc8
commit 159efc33a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309683

View File

@ -797,7 +797,7 @@ sctp_sendmsgx(int sd,
memset((void *)&sinfo, 0, sizeof(struct sctp_sndrcvinfo));
sinfo.sinfo_ppid = ppid;
sinfo.sinfo_flags = flags;
sinfo.sinfo_ssn = stream_no;
sinfo.sinfo_stream = stream_no;
sinfo.sinfo_timetolive = timetolive;
sinfo.sinfo_context = context;
return (sctp_sendx(sd, msg, len, addrs, addrcnt, &sinfo, 0));