rpcrt4: Set the AI_PASSIVE flag to getaddrinfo in rpcrt4_ip_tcp_open so that the bound-to port is connectable from other machines.

This commit is contained in:
Rob Shearman 2006-10-31 19:02:33 +00:00 committed by Alexandre Julliard
parent 3ed6a201c2
commit 85e28ae33d
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
if (tcpc->sock != -1) if (tcpc->sock != -1)
return RPC_S_OK; return RPC_S_OK;
hints.ai_flags = 0; hints.ai_flags = Connection->server ? AI_PASSIVE : 0;
hints.ai_family = PF_UNSPEC; hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM; hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP; hints.ai_protocol = IPPROTO_TCP;