Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Oct 2016 11:45:12 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r307036 - head/lib/libc/gen
Message-ID:  <201610111145.u9BBjC1x005773@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Oct 11 11:45:12 2016
New Revision: 307036
URL: https://svnweb.freebsd.org/changeset/base/307036

Log:
  Fill msg_len for the initial element of msgvec.
  
  Submitted by:	Daniel Salzman <daniel.salzman@nic.cz>
  MFC after:	3 days

Modified:
  head/lib/libc/gen/recvmmsg.c

Modified: head/lib/libc/gen/recvmmsg.c
==============================================================================
--- head/lib/libc/gen/recvmmsg.c	Tue Oct 11 09:19:30 2016	(r307035)
+++ head/lib/libc/gen/recvmmsg.c	Tue Oct 11 11:45:12 2016	(r307036)
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610111145.u9BBjC1x005773>