Skip to content

Commit cb4b276

Browse files
kparzysz-quicwweic
authored andcommitted
Fix setting up hints for getaddrinfo (apache#2872)
1 parent 589d098 commit cb4b276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/socket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct SockAddr {
6565
memset(&hints, 0, sizeof(hints));
6666
hints.ai_family = PF_UNSPEC;
6767
hints.ai_flags = AI_PASSIVE;
68-
hints.ai_protocol = SOCK_STREAM;
68+
hints.ai_socktype = SOCK_STREAM;
6969
addrinfo *res = NULL;
7070
int sig = getaddrinfo(host, NULL, &hints, &res);
7171
CHECK(sig == 0 && res != NULL)

0 commit comments

Comments
 (0)