Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b3c04e03
Commit
b3c04e03
authored
Jun 13, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: getaddrinfo returns any non-zero value on failure, not just negative values.
parent
2208694a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+3
-3
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
b3c04e03
...
...
@@ -481,7 +481,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
hints
.
ai_next
=
NULL
;
ret
=
getaddrinfo
(
Connection
->
NetworkAddr
,
Connection
->
Endpoint
,
&
hints
,
&
ai
);
if
(
ret
<
0
)
if
(
ret
)
{
ERR
(
"getaddrinfo failed: %s
\n
"
,
gai_strerror
(
ret
));
return
RPC_S_SERVER_UNAVAILABLE
;
...
...
@@ -606,10 +606,10 @@ static size_t rpcrt4_ncacn_ip_tcp_get_top_of_tower(unsigned char *tower_data,
hints
.
ai_next
=
NULL
;
ret
=
getaddrinfo
(
networkaddr
,
endpoint
,
&
hints
,
&
ai
);
if
(
ret
<
0
)
if
(
ret
)
{
ret
=
getaddrinfo
(
"0.0.0.0"
,
endpoint
,
&
hints
,
&
ai
);
if
(
ret
<
0
)
if
(
ret
)
{
ERR
(
"getaddrinfo failed: %s
\n
"
,
gai_strerror
(
ret
));
return
0
;
...
...
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