Re: ws2_32: ws_sockaddr_u2ws should zero the WS_sockaddr before using it.

2006-12-20 Thread Kai Blin
On Wednesday 20 December 2006 13:37, Francois Gouget wrote: > On Wed, 20 Dec 2006, Kai Blin wrote: > > @@ -946,6 +946,9 @@ static int ws_sockaddr_u2ws(const struct > { > int res; > > +/* Zero the ws_sockaddr structure before using */ > +memset(wsaddr, 0, *wsaddrlen); > > Are you sure

Re: ws2_32: ws_sockaddr_u2ws should zero the WS_sockaddr before using it.

2006-12-20 Thread Francois Gouget
On Wed, 20 Dec 2006, Kai Blin wrote: @@ -946,6 +946,9 @@ static int ws_sockaddr_u2ws(const struct { int res; +/* Zero the ws_sockaddr structure before using */ +memset(wsaddr, 0, *wsaddrlen); Are you sure this is needed in ws_sockaddr_u2ws() or should it rather be done by getsock