aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-11-18 16:17:32 +0000
committerPeter Maydell <peter.maydell@linaro.org>2014-11-18 16:17:32 +0000
commit8336e465acdc0ebaaaa685d218edca346f91100b (patch)
tree2ede290c0cf0897f1f6b3ae955d6a117133dcdd2
parentb1b1e81fb51965bb53be3d58d3dd9b3b3aa17242 (diff)
parented6273e26fdfb94a282dbbf1234a75422c6b4c4b (diff)
downloadqemu-8336e465acdc0ebaaaa685d218edca346f91100b.zip
qemu-8336e465acdc0ebaaaa685d218edca346f91100b.tar.gz
qemu-8336e465acdc0ebaaaa685d218edca346f91100b.tar.bz2
Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into staging
# gpg: Signature made Tue 18 Nov 2014 15:04:53 GMT using RSA key ID 81AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" * remotes/stefanha/tags/net-pull-request: net: The third parameter of getsockname should be initialized Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--net/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c
index fb21e20..ca4b8ba 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -352,7 +352,7 @@ static NetSocketState *net_socket_fd_init_dgram(NetClientState *peer,
{
struct sockaddr_in saddr;
int newfd;
- socklen_t saddr_len;
+ socklen_t saddr_len = sizeof(saddr);
NetClientState *nc;
NetSocketState *s;