No need to manually delete the context handle, it's under a safe handle now.

This commit is contained in:
antiduh
2014-06-24 22:01:26 +00:00
parent 56e48dc65d
commit 28a3835060

View File

@@ -59,12 +59,9 @@ namespace NSspi
if( disposing )
{
this.Credential.Dispose();
this.ContextHandle.Dispose();
}
// TODO SAFE_CER
ContextNativeMethods.DeleteSecurityContext( ref this.ContextHandle.rawHandle );
this.ContextHandle.Dispose();
this.disposed = true;
}