rpcrt4: Only use the cached connection if the authentication information is compatible.

This commit is contained in:
Robert Shearman 2006-05-18 03:40:58 +01:00 committed by Alexandre Julliard
parent 217ec275b8
commit 4e89efadf6
1 changed files with 1 additions and 0 deletions

View File

@ -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))) {