Commit ed6273e2 authored by zhanghailiang's avatar zhanghailiang Committed by Stefan Hajnoczi

net: The third parameter of getsockname should be initialized

Signed-off-by: default avatarzhanghailiang <>
Reviewed-by: default avatarMarkus Armbruster <>
Signed-off-by: default avatarStefan Hajnoczi <>
parent 1aba4be9
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment