Просмотр исходного кода

Call DeleteSecurityContext during Logoff

Tal Aloni 8 лет назад
Родитель
Сommit
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();
                 }