]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
Fix a bug in sctp_sendmsgx(), where the sid provided by the user
authortuexen <tuexen@FreeBSD.org>
Wed, 7 Dec 2016 21:24:49 +0000 (21:24 +0000)
committertuexen <tuexen@FreeBSD.org>
Wed, 7 Dec 2016 21:24:49 +0000 (21:24 +0000)
was hot honored.

MFC after: 3 days

lib/libc/net/sctp_sys_calls.c

index dcbcee7757696cb11051f04b4f747258f8a2593c..25b9ec87d1957f13e37e7f58c96f70aaad748e66 100644 (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));