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
bde4e362
Commit
bde4e362
authored
Feb 23, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Handle NULL argument in inet_addr.
parent
cdca32c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
socket.c
dlls/ws2_32/socket.c
+1
-0
sock.c
dlls/ws2_32/tests/sock.c
+11
-2
No files found.
dlls/ws2_32/socket.c
View file @
bde4e362
...
...
@@ -2175,6 +2175,7 @@ int WINAPI WSAHtons(SOCKET s, WS_u_short hostshort, WS_u_short *lpnetshort)
*/
WS_u_long
WINAPI
WS_inet_addr
(
const
char
*
cp
)
{
if
(
!
cp
)
return
INADDR_NONE
;
return
inet_addr
(
cp
);
}
...
...
dlls/ws2_32/tests/sock.c
View file @
bde4e362
...
...
@@ -1491,7 +1491,7 @@ done:
closesocket
(
server_socket
);
}
static
void
test_extendedSocketOptions
()
static
void
test_extendedSocketOptions
(
void
)
{
WSADATA
wsa
;
SOCKET
sock
;
...
...
@@ -1565,7 +1565,7 @@ static void test_extendedSocketOptions()
WSACleanup
();
}
static
void
test_getsockname
()
static
void
test_getsockname
(
void
)
{
WSADATA
wsa
;
SOCKET
sock
;
...
...
@@ -1612,6 +1612,14 @@ static void test_getsockname()
WSACleanup
();
}
static
void
test_inet_addr
(
void
)
{
u_long
addr
;
addr
=
inet_addr
(
NULL
);
ok
(
addr
==
INADDR_NONE
,
"inet_addr succeeded unexpectedly
\n
"
);
}
/**************** Main program ***************/
START_TEST
(
sock
)
...
...
@@ -1643,6 +1651,7 @@ START_TEST( sock )
test_select
();
test_accept
();
test_getsockname
();
test_inet_addr
();
Exit
();
}
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