qemu-e2k/net
Gonglei 8db804ac41 net/socket: fix Uninitialized scalar variable
If is_connected parameter is false, the saddr
variable will no initialize. Coverity report:
uninit_use: Using uninitialized value saddr.sin_port.

We don't need add saddr information to nc->info_str
when is_connected is false.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-11-21 10:50:54 +00:00
..
checksum.c
clients.h
dump.c
eth.c
hub.c
hub.h
l2tpv3.c
Makefile.objs
net.c
netmap.c
queue.c
slirp.c
socket.c net/socket: fix Uninitialized scalar variable 2014-11-21 10:50:54 +00:00
tap_int.h
tap-aix.c
tap-bsd.c
tap-haiku.c
tap-linux.c
tap-linux.h
tap-solaris.c
tap-win32.c
tap.c
util.c
util.h
vde.c
vhost-user.c