Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d35857df
Commit
d35857df
authored
Jul 24, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Initialize the address to 0 in ws_sockaddr_ws2u.
parent
861767f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
socket.c
dlls/ws2_32/socket.c
+3
-0
No files found.
dlls/ws2_32/socket.c
View file @
d35857df
...
...
@@ -854,6 +854,7 @@ static unsigned int ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsadd
return
0
;
uaddrlen
=
sizeof
(
struct
sockaddr_ipx
);
memset
(
uaddr
,
0
,
uaddrlen
);
uipx
->
sipx_family
=
AF_IPX
;
uipx
->
sipx_port
=
wsipx
->
sa_socket
;
/* copy sa_netnum and sa_nodenum to sipx_network and sipx_node
...
...
@@ -876,6 +877,7 @@ static unsigned int ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsadd
*/
if
(
wsaddrlen
>=
sizeof
(
struct
WS_sockaddr_in6_old
))
{
uaddrlen
=
sizeof
(
struct
sockaddr_in6
);
memset
(
uaddr
,
0
,
uaddrlen
);
uin6
->
sin6_family
=
AF_INET6
;
uin6
->
sin6_port
=
win6
->
sin6_port
;
uin6
->
sin6_flowinfo
=
win6
->
sin6_flowinfo
;
...
...
@@ -895,6 +897,7 @@ static unsigned int ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsadd
if
(
wsaddrlen
<
sizeof
(
struct
WS_sockaddr_in
))
return
0
;
uaddrlen
=
sizeof
(
struct
sockaddr_in
);
memset
(
uaddr
,
0
,
uaddrlen
);
uin
->
sin_family
=
AF_INET
;
uin
->
sin_port
=
win
->
sin_port
;
memcpy
(
&
uin
->
sin_addr
,
&
win
->
sin_addr
,
4
);
/* 4 bytes = 32 address bits */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment