]> git.proxmox.com Git - qemu.git/commit
libqtest: Fix socket_accept() to pass address_len
authorAndreas Färber <andreas.faerber@web.de>
Sun, 27 May 2012 22:53:20 +0000 (00:53 +0200)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 22 Jun 2012 08:41:31 +0000 (09:41 +0100)
commitb34d259516ae2377186171c58c3bc535eb9ed263
tree2169338f0bd564467e42aba2712331884db2e816
parentfc8c5b8c41ee5ba69d7a2be63b02a08c7b0b155b
libqtest: Fix socket_accept() to pass address_len

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 <andreas.faerber@web.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
tests/libqtest.c