From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Se3do-0006Bd-5R for qemu-devel@nongnu.org; Mon, 11 Jun 2012 08:22:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Se3dj-0002yS-HI for qemu-devel@nongnu.org; Mon, 11 Jun 2012 08:22:39 -0400 Message-ID: <4FD5E307.7030301@web.de> Date: Mon, 11 Jun 2012 14:22:31 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1338159200-7502-1-git-send-email-andreas.faerber@web.de> In-Reply-To: <1338159200-7502-1-git-send-email-andreas.faerber@web.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH for-1.1] libqtest: Fix socket_accept() to pass address_len List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial , qemu-stable@nongnu.org, anthony@codemonkey.ws Am 28.05.2012 00:53, schrieb Andreas Färber: > accept() expects address_len to point to the length of the sockaddr on > input. Initialize it accordingly. > > Resolves an assertion due to EFAULT on illumos. > > Signed-off-by: Andreas Färber Ping? Verifiable by looking at the Linux man page. /-F > --- > tests/libqtest.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/tests/libqtest.c b/tests/libqtest.c > index 6d333ef..1d73fd1 100644 > --- a/tests/libqtest.c > +++ b/tests/libqtest.c > @@ -74,6 +74,7 @@ static int socket_accept(int sock) > socklen_t addrlen; > int ret; > > + addrlen = sizeof(addr); > do { > ret = accept(sock, (struct sockaddr *)&addr, &addrlen); > } while (ret == -1 && errno == EINTR);