diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-11-18 16:17:32 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-11-18 16:17:32 +0000 |
commit | 8336e465acdc0ebaaaa685d218edca346f91100b (patch) | |
tree | 2ede290c0cf0897f1f6b3ae955d6a117133dcdd2 | |
parent | b1b1e81fb51965bb53be3d58d3dd9b3b3aa17242 (diff) | |
parent | ed6273e26fdfb94a282dbbf1234a75422c6b4c4b (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index fb21e20a54..ca4b8ba2b3 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; |