From 1694844d2bde403f330de089ae137455458ed5cd Mon Sep 17 00:00:00 2001 From: Wim Lewis Date: Fri, 2 Jan 2004 20:12:00 +0000 Subject: [PATCH] Clear struct sockaddr_ipx directly instead of just the sipx_zero field. --- dlls/winsock/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index 49af7f77a88..bbaf951dd73 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -729,6 +729,7 @@ static const struct sockaddr* ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, *uaddrlen=sizeof(struct sockaddr_ipx); uipx=malloc(*uaddrlen); + memset(&uipx,0,sizeof(uipx)); uipx->sipx_family=AF_IPX; uipx->sipx_port=wsipx->sa_socket; /* copy sa_netnum and sa_nodenum to sipx_network and sipx_node @@ -738,7 +739,6 @@ static const struct sockaddr* ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, #ifdef IPX_FRAME_NONE uipx->sipx_type=IPX_FRAME_NONE; #endif - memset(&uipx->sipx_zero,0,sizeof(uipx->sipx_zero)); return (const struct sockaddr*)uipx; } #endif