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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 31 15:07:58 CST 2006


Module: wine
Branch: master
Commit: 85e28ae33d4f22809ae71a4ba6b4a4a24b1e679f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=85e28ae33d4f22809ae71a4ba6b4a4a24b1e679f

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Oct 31 19:02:33 2006 +0000

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

---

 dlls/rpcrt4/rpc_transport.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index 19da6a5..a264b9b 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -584,7 +584,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_op
   if (tcpc->sock != -1)
     return RPC_S_OK;
 
-  hints.ai_flags          = 0;
+  hints.ai_flags          = Connection->server ? AI_PASSIVE : 0;
   hints.ai_family         = PF_UNSPEC;
   hints.ai_socktype       = SOCK_STREAM;
   hints.ai_protocol       = IPPROTO_TCP;




More information about the wine-cvs mailing list