Commit 1694844d authored by Wim Lewis's avatar Wim Lewis Committed by Alexandre Julliard

Clear struct sockaddr_ipx directly instead of just the sipx_zero

field.
parent 99a01c03
...@@ -729,6 +729,7 @@ static const struct sockaddr* ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, ...@@ -729,6 +729,7 @@ static const struct sockaddr* ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr,
*uaddrlen=sizeof(struct sockaddr_ipx); *uaddrlen=sizeof(struct sockaddr_ipx);
uipx=malloc(*uaddrlen); uipx=malloc(*uaddrlen);
memset(&uipx,0,sizeof(uipx));
uipx->sipx_family=AF_IPX; uipx->sipx_family=AF_IPX;
uipx->sipx_port=wsipx->sa_socket; uipx->sipx_port=wsipx->sa_socket;
/* copy sa_netnum and sa_nodenum to sipx_network and sipx_node /* 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, ...@@ -738,7 +739,6 @@ static const struct sockaddr* ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr,
#ifdef IPX_FRAME_NONE #ifdef IPX_FRAME_NONE
uipx->sipx_type=IPX_FRAME_NONE; uipx->sipx_type=IPX_FRAME_NONE;
#endif #endif
memset(&uipx->sipx_zero,0,sizeof(uipx->sipx_zero));
return (const struct sockaddr*)uipx; return (const struct sockaddr*)uipx;
} }
#endif #endif
......
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