From owner-svn-src-all@freebsd.org  Fri Oct 14 09:29:01 2016
Return-Path: <owner-svn-src-all@freebsd.org>
Delivered-To: svn-src-all@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2743BC11C3E;
 Fri, 14 Oct 2016 09:29:01 +0000 (UTC) (envelope-from kib@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
 [IPv6:2610:1c1:1:6068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id E9370373;
 Fri, 14 Oct 2016 09:29:00 +0000 (UTC) (envelope-from kib@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
 by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9E9T0dx012936;
 Fri, 14 Oct 2016 09:29:00 GMT (envelope-from kib@FreeBSD.org)
Received: (from kib@localhost)
 by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9E9T0Ew012935;
 Fri, 14 Oct 2016 09:29:00 GMT (envelope-from kib@FreeBSD.org)
Message-Id: <201610140929.u9E9T0Ew012935@repo.freebsd.org>
X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org
 using -f
From: Konstantin Belousov <kib@FreeBSD.org>
Date: Fri, 14 Oct 2016 09:29:00 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
 svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject: svn commit: r307311 - stable/11/lib/libc/gen
X-SVN-Group: stable-11
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: svn-src-all@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "SVN commit messages for the entire src tree \(except for &quot;
 user&quot; and &quot; projects&quot; \)" <svn-src-all.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-src-all>,
 <mailto:svn-src-all-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-all/>
List-Post: <mailto:svn-src-all@freebsd.org>
List-Help: <mailto:svn-src-all-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-src-all>,
 <mailto:svn-src-all-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Oct 2016 09:29:01 -0000

Author: kib
Date: Fri Oct 14 09:28:59 2016
New Revision: 307311
URL: https://svnweb.freebsd.org/changeset/base/307311

Log:
  MFC r307036:
  Fill msg_len for the initial element of msgvec.

Modified:
  stable/11/lib/libc/gen/recvmmsg.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libc/gen/recvmmsg.c
==============================================================================
--- stable/11/lib/libc/gen/recvmmsg.c	Fri Oct 14 09:10:41 2016	(r307310)
+++ stable/11/lib/libc/gen/recvmmsg.c	Fri Oct 14 09:28:59 2016	(r307311)
@@ -69,6 +69,8 @@ recvmmsg(int s, struct mmsghdr *__restri
 	if (ret == -1)
 		return (ret);
 
+	msgvec[0].msg_len = ret;
+
 	/* 
 	 * Do non-blocking receive for second and later messages if
 	 * WAITFORONE is set.