Date: Sat, 18 Oct 2008 15:56:53 +0000 (UTC) From: Randall Stewart <rrs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184031 - head/sys/netinet Message-ID: <200810181556.m9IFurli020662@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rrs Date: Sat Oct 18 15:56:52 2008 New Revision: 184031 URL: http://svn.freebsd.org/changeset/base/184031 Log: The flags value was not always being copied out in the recv routine like it should be. Obtained from: Michael Tuexen Modified: head/sys/netinet/sctputil.c Modified: head/sys/netinet/sctputil.c ============================================================================== --- head/sys/netinet/sctputil.c Sat Oct 18 15:56:12 2008 (r184030) +++ head/sys/netinet/sctputil.c Sat Oct 18 15:56:52 2008 (r184031) @@ -5896,9 +5896,10 @@ release_unlocked: (no_rcv_needed == 0)) sctp_user_rcvd(stcb, &freed_so_far, hold_rlock, rwnd_req); } - if (msg_flags) - *msg_flags = out_flags; out: + if (msg_flags) { + *msg_flags = out_flags; + } if (((out_flags & MSG_EOR) == 0) && ((in_flags & MSG_PEEK) == 0) && (sinfo) &&
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810181556.m9IFurli020662>