qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] net: The third parameter of getsockname should be initialized
@ 2014-11-17  5:54 zhanghailiang
  2014-11-17  7:18 ` Markus Armbruster
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zhanghailiang @ 2014-11-17  5:54 UTC (permalink / raw)
  To: qemu-trivial
  Cc: pbonzini, zhanghailiang, qemu-devel, stefanha, peter.huangpeng

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
---
 net/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
1.7.12.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-17 16:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-17  5:54 [Qemu-devel] [PATCH] net: The third parameter of getsockname should be initialized zhanghailiang
2014-11-17  7:18 ` Markus Armbruster
2014-11-17 11:00 ` Paolo Bonzini
2014-11-17 16:59 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).