Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
ce3decb1
Commit
ce3decb1
authored
5 years ago
by
kparzysz
Committed by
Tianqi Chen
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix setting up hints for getaddrinfo (#2872)
parent
6e18eb25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/common/socket.h
+1
-1
No files found.
src/common/socket.h
View file @
ce3decb1
...
...
@@ -65,7 +65,7 @@ struct SockAddr {
memset
(
&
hints
,
0
,
sizeof
(
hints
));
hints
.
ai_family
=
PF_UNSPEC
;
hints
.
ai_flags
=
AI_PASSIVE
;
hints
.
ai_
protocol
=
SOCK_STREAM
;
hints
.
ai_
socktype
=
SOCK_STREAM
;
addrinfo
*
res
=
NULL
;
int
sig
=
getaddrinfo
(
host
,
NULL
,
&
hints
,
&
res
);
CHECK
(
sig
==
0
&&
res
!=
NULL
)
...
...
This diff is collapsed.
Click to expand it.
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