Commit c4d25aec authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Fixed stack overwrite by using sizeof(WS_sockaddr_ipx).

parent 95a58eba
......@@ -1704,8 +1704,8 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
* only "one" device active and further it is not possible to query things like the linkspeed.
*/
FIXME("IPX_ADDRESS\n");
namelen = sizeof(struct WS_sockaddr);
memset(&addr, 0, sizeof(struct WS_sockaddr));
namelen = sizeof(struct WS_sockaddr_ipx);
memset(&addr, 0, sizeof(struct WS_sockaddr_ipx));
WS_getsockname(s, (struct WS_sockaddr*)&addr, &namelen);
data = (IPX_ADDRESS_DATA*)optval;
......
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