zhanghailiang <zhang.zhanghaili...@huawei.com> writes: > Signed-off-by: zhanghailiang <zhang.zhanghaili...@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;
Reviewed-by: Markus Armbruster <arm...@redhat.com>