rpcrt4: Only use the cached connection if the authentication information is compatible.
This commit is contained in:
parent
217ec275b8
commit
4e89efadf6
|
@ -242,6 +242,7 @@ RPC_STATUS RPCRT4_OpenBinding(RpcBinding* Binding, RpcConnection** Connection,
|
|||
/* 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))) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue