From owner-svn-src-head@FreeBSD.ORG Sat Oct 18 15:56:53 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 494981065695; Sat, 18 Oct 2008 15:56:53 +0000 (UTC) (envelope-from rrs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 386168FC17; Sat, 18 Oct 2008 15:56:53 +0000 (UTC) (envelope-from rrs@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9IFurBA020663; Sat, 18 Oct 2008 15:56:53 GMT (envelope-from rrs@svn.freebsd.org) Received: (from rrs@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9IFurli020662; Sat, 18 Oct 2008 15:56:53 GMT (envelope-from rrs@svn.freebsd.org) Message-Id: <200810181556.m9IFurli020662@svn.freebsd.org> From: Randall Stewart Date: Sat, 18 Oct 2008 15:56:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184031 - head/sys/netinet X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2008 15:56:53 -0000 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) &&