Skip to content

Commit

Permalink
Fix setting up hints for getaddrinfo (#2872)
Browse files Browse the repository at this point in the history
  • Loading branch information
kparzysz-quic authored and tqchen committed Mar 23, 2019
1 parent 6e18eb2 commit ce3decb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ce3decb

Please sign in to comment.