All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] net: The third parameter of getsockname should be initialized
@ 2014-11-17  5:54 ` zhanghailiang
  0 siblings, 0 replies; 8+ 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] 8+ messages in thread

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.