diff options
| author | Andreas Färber | 2014-04-17 19:21:12 +0200 |
|---|---|---|
| committer | Andreas Färber | 2014-05-05 20:58:33 +0200 |
| commit | 535b45631ad7176e10dab89d55443b5a096500b9 (patch) | |
| tree | d78cd4408f6b5e4ea1092ee2bddc341ec9c222e5 /include/exec/memory.h | |
| parent | qtest: Add error reporting to socket_accept() (diff) | |
| download | qemu-535b45631ad7176e10dab89d55443b5a096500b9.tar.gz qemu-535b45631ad7176e10dab89d55443b5a096500b9.tar.xz qemu-535b45631ad7176e10dab89d55443b5a096500b9.zip | |
qtest: Be paranoid about accept() addrlen argument
POSIX specifies that address_len shall on output specify the length of
the stored address; it does not however specify whether it may get
updated on failure as well to, e.g., zero.
In case EINTR occurs, re-initialize the variable to the desired value.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/exec/memory.h')
0 files changed, 0 insertions, 0 deletions
