Skip to contentSkip to conversation

Net patches

GIT PULL Applied Stefan Hajnoczi 2 participants 3 messages Nov 18, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The following changes since commit 1aba4be97eb01b650d146c7f01dc961d55da62ab:

Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2014-11-17 17:22:03 +0000)

are available in the git repository at:

git://github.com/stefanha/qemu.git tags/net-pull-request

for you to fetch changes up to ed6273e26fdfb94a282dbbf1234a75422c6b4c4b:

net: The third parameter of getsockname should be initialized (2014-11-18 15:04:35 +0000)

----------------------------------------------------------------

----------------------------------------------------------------

zhanghailiang (1):
net: The third parameter of getsockname should be initialized

 net/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.1.0
#1 lore raw

[Qemu-devel] [PULL] net: The third parameter of getsockname should be initialized

From: zhanghailiang <[email protected]>

---
 net/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/socket.c +1 -1
index fb21e20..ca4b8ba 100644
@@ -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;
 
Signature · 1 line
2.1.0
#2 lore raw
In reply to Stefan Hajnoczi
Quoted 8 lines · Stefan Hajnoczi

The following changes since commit 1aba4be97eb01b650d146c7f01dc961d55da62ab:

Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2014-11-17 17:22:03 +0000)

are available in the git repository at:

git://github.com/stefanha/qemu.git tags/net-pull-request

Quoted 7 lines

for you to fetch changes up to ed6273e26fdfb94a282dbbf1234a75422c6b4c4b:

net: The third parameter of getsockname should be initialized (2014-11-18 15:04:35 +0000)

----------------------------------------------------------------

----------------------------------------------------------------

Applied, thanks.

-- PMM