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).
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user