Module: wine Branch: master Commit: 48344f505b3246d3704c4136fd998801d6e0c924 URL: http://source.winehq.org/git/wine.git/?a=commit;h=48344f505b3246d3704c4136fd...
Author: Rob Shearman rob@codeweavers.com Date: Sun Dec 17 23:45:22 2006 +0000
rpcrt4: Free the resource allocated by InitializeSecurityContext when the connection is closed.
---
dlls/rpcrt4/rpc_transport.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c index f8091da..ceae31d 100644 --- a/dlls/rpcrt4/rpc_transport.c +++ b/dlls/rpcrt4/rpc_transport.c @@ -1280,6 +1280,11 @@ RPC_STATUS RPCRT4_OpenClientConnection(R RPC_STATUS RPCRT4_CloseConnection(RpcConnection* Connection) { TRACE("(Connection == ^%p)\n", Connection); + if (SecIsValidHandle(&Connection->ctx)) + { + DeleteSecurityContext(&Connection->ctx); + SecInvalidateHandle(&Connection->ctx); + } rpcrt4_conn_close(Connection); return RPC_S_OK; }