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 Laurawly committed Mar 27, 2019
1 parent cbd3627 commit 84f539a
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 84f539a

Please sign in to comment.