浏览代码

Call DeleteSecurityContext during Logoff

Tal Aloni 8 年之前
父节点
当前提交
b54cee3070
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      SMBLibrary/Server/SMBServer.SMB1.cs
  2. 1 0
      SMBLibrary/Server/SMBServer.SMB2.cs

+ 1 - 0
SMBLibrary/Server/SMBServer.SMB1.cs

@@ -130,6 +130,7 @@ namespace SMBLibrary.Server
                 }
                 else if (command is LogoffAndXRequest)
                 {
+                    m_securityProvider.DeleteSecurityContext(ref session.SecurityContext.AuthenticationContext);
                     state.RemoveSession(header.UID);
                     return new LogoffAndXResponse();
                 }

+ 1 - 0
SMBLibrary/Server/SMBServer.SMB2.cs

@@ -129,6 +129,7 @@ namespace SMBLibrary.Server
                 }
                 else if (command is LogoffRequest)
                 {
+                    m_securityProvider.DeleteSecurityContext(ref session.SecurityContext.AuthenticationContext);
                     state.RemoveSession(command.Header.SessionID);
                     return new LogoffResponse();
                 }