Module: wine
Branch: master
Commit: 828c733f72cd45f6b356d741336afbafb3da71eb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=828c733f72cd45f6b356d7413…
Author: Rob Shearman <rob(a)codeweavers.com>
Date: Tue Oct 31 19:01:56 2006 +0000
rpcrt4: Set the socket back to blocking in rpcrt4_conn_tcp_handoff as
the read and write function for the protseq assume that syscalls will block.
---
dlls/rpcrt4/rpc_transport.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index d50b60b..a90b73c 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -684,6 +684,8 @@ static RPC_STATUS rpcrt4_conn_tcp_handof
ERR("Failed to accept a TCP connection: error %d\n", ret);
return RPC_S_SERVER_UNAVAILABLE;
}
+ /* reset to blocking behaviour */
+ fcntl(ret, F_SETFL, 0);
client->sock = ret;
TRACE("Accepted a new TCP connection\n");
return RPC_S_OK;
Module: wine
Branch: master
Commit: e2e05d0493ee48b58b4b6997868d4bfea761a4f8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e2e05d0493ee48b58b4b69978…
Author: Rob Shearman <rob(a)codeweavers.com>
Date: Tue Oct 31 19:01:33 2006 +0000
rpcrt4: Fix a typo in rpcrt4_ip_tcp_open that would cause the function
to go into an infinite loop if getaddrinfo returned more than one entry.
---
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 2f65f75..d50b60b 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -600,7 +600,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_op
return RPC_S_SERVER_UNAVAILABLE;
}
- for (ai_cur = ai; ai_cur; ai_cur = ai->ai_next)
+ for (ai_cur = ai; ai_cur; ai_cur = ai_cur->ai_next)
{
if (TRACE_ON(rpc))
{