Skip to content

Commit

Permalink
Fix setting up hints for getaddrinfo (apache#2872)
Browse files Browse the repository at this point in the history
  • Loading branch information
kparzysz-quic authored and wweic committed Mar 24, 2019
1 parent 2882ee3 commit 4130dad
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 4130dad

Please sign in to comment.