* [Qemu-devel] [6478] linux-user: fix accept(2) with NULL peer
@ 2009-01-30 19:47 Aurelien Jarno
0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2009-01-30 19:47 UTC (permalink / raw)
To: qemu-devel
Revision: 6478
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6478
Author: aurel32
Date: 2009-01-30 19:47:47 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
linux-user: fix accept(2) with NULL peer
Based on scratchbox2 patch by Mika Westerberg
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Modified Paths:
--------------
trunk/linux-user/syscall.c
Modified: trunk/linux-user/syscall.c
===================================================================
--- trunk/linux-user/syscall.c 2009-01-29 23:29:52 UTC (rev 6477)
+++ trunk/linux-user/syscall.c 2009-01-30 19:47:47 UTC (rev 6478)
@@ -1267,6 +1267,9 @@
void *addr;
abi_long ret;
+ if (target_addr == 0)
+ return get_errno(accept(fd, NULL, NULL));
+
if (get_user_u32(addrlen, target_addrlen_addr))
return -TARGET_EFAULT;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-30 19:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-30 19:47 [Qemu-devel] [6478] linux-user: fix accept(2) with NULL peer Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).