From 28a383506001093825a0e21ff734043da91db0ca Mon Sep 17 00:00:00 2001 From: antiduh Date: Tue, 24 Jun 2014 22:01:26 +0000 Subject: [PATCH] No need to manually delete the context handle, it's under a safe handle now. --- Contexts/Context.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Contexts/Context.cs b/Contexts/Context.cs index eb2cc1e..ab74bba 100644 --- a/Contexts/Context.cs +++ b/Contexts/Context.cs @@ -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; }