qemu-e2k/net
Stefan Hajnoczi e5d1fca0f2 net: take ownership of fd in socket init functions
Today net/socket.c has no consistent policy for closing the socket file
descriptor when initialization fails.  This means we leak the file
descriptor in some cases or we could also try to close it twice.

Make error paths consistent by taking ownership of the file descriptor
and closing it on error.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-12-12 17:06:21 -06:00
..
checksum.c
checksum.h
dump.c
dump.h
queue.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
queue.h
slirp.c slirp: Clean up net_slirp_hostfwd_remove()'s use of get_str_sep() 2011-11-22 11:11:23 +00:00
slirp.h
socket.c net: take ownership of fd in socket init functions 2011-12-12 17:06:21 -06:00
socket.h
tap-aix.c
tap-bsd.c Fix network interface tap backend 2011-08-07 09:48:59 +00:00
tap-haiku.c
tap-linux.c net: tap-linux: Fix unhelpful error message 2011-11-01 06:23:48 +00:00
tap-linux.h
tap-solaris.c
tap-win32.c
tap.c
tap.h
util.c
util.h
vde.c
vde.h