From c891b706259726c2a334f0f81175d952945e0148 Mon Sep 17 00:00:00 2001 From: antiduh Date: Tue, 1 Jul 2014 21:22:32 +0000 Subject: [PATCH] Get rid of the 'status' variable when checking the return code in RevertImpersonate. We don't care what happened, since if it broke, we can't report it (it's in a Dispose path). --- NSspi/Contexts/ServerContext.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NSspi/Contexts/ServerContext.cs b/NSspi/Contexts/ServerContext.cs index 1fdbe54..37bc0f2 100644 --- a/NSspi/Contexts/ServerContext.cs +++ b/NSspi/Contexts/ServerContext.cs @@ -195,7 +195,6 @@ namespace NSspi.Contexts internal void RevertImpersonate() { bool gotRef = false; - SecurityStatus status = SecurityStatus.InternalError; if( impersonating == false || this.Disposed ) { @@ -221,7 +220,7 @@ namespace NSspi.Contexts { if( gotRef ) { - status = ContextNativeMethods.RevertSecurityContext( + ContextNativeMethods.RevertSecurityContext( ref this.ContextHandle.rawHandle );