From 3142cfff7bfcf606baab24d556531c91d9eb9bf3 Mon Sep 17 00:00:00 2001 From: antiduh Date: Mon, 23 Jun 2014 02:33:47 +0000 Subject: [PATCH] Fixed ServerContext to store its final attributes. --- Contexts/ServerContext.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Contexts/ServerContext.cs b/Contexts/ServerContext.cs index 5bec16b..e3108c9 100644 --- a/Contexts/ServerContext.cs +++ b/Contexts/ServerContext.cs @@ -29,7 +29,6 @@ namespace NSspi.Contexts long newContextHandle = 0; SecurityStatus status; - ContextAttrib outAttribs = ContextAttrib.Zero; long expiry = 0; SecureBufferAdapter clientAdapter; @@ -50,7 +49,7 @@ namespace NSspi.Contexts SecureBufferDataRep.Network, ref newContextHandle, outAdapter.Handle, - ref outAttribs, + ref this.finalAttribs, ref expiry ); } @@ -64,7 +63,7 @@ namespace NSspi.Contexts SecureBufferDataRep.Network, ref newContextHandle, outAdapter.Handle, - ref outAttribs, + ref this.finalAttribs, ref expiry ); }