Module: wine
Branch: refs/heads/master
Commit: 4e89efadf615dd89d050f923d5a8b4f731a53b35
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=4e89efadf615dd89d050f92…
Author: Robert Shearman <rob(a)codeweavers.com>
Date: Thu May 18 03:40:58 2006 +0100
rpcrt4: Only use the cached connection if the authentication information is compatible.
---
dlls/rpcrt4/rpc_binding.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c
index 22d9e98..0801de7 100644
--- a/dlls/rpcrt4/rpc_binding.c
+++ b/dlls/rpcrt4/rpc_binding.c
@@ -242,6 +242,7 @@ RPC_STATUS RPCRT4_OpenBinding(RpcBinding
/* if we try to bind a new interface and the connection is already opened,
* close the current connection and create a new with the new binding. */
if (!Binding->server && Binding->FromConn &&
+ (Binding->AuthInfo == Binding->FromConn->AuthInfo) &&
memcmp(&Binding->FromConn->ActiveInterface, InterfaceId,
sizeof(RPC_SYNTAX_IDENTIFIER))) {