Browse Source

Server: SMB2: SMB2Session: Fixed KeyNotFoundException when calling the DisconnectTree method

Tal Aloni 7 years ago
parent
commit
5276088159
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SMBLibrary/Server/ConnectionState/SMB2Session.cs

+ 1 - 1
SMBLibrary/Server/ConnectionState/SMB2Session.cs

@@ -91,7 +91,7 @@ namespace SMBLibrary.Server
                 lock (m_openFiles)
                 {
                     List<ulong> fileIDList = new List<ulong>(m_openFiles.Keys);
-                    foreach (ushort fileID in fileIDList)
+                    foreach (ulong fileID in fileIDList)
                     {
                         OpenFileObject openFile = m_openFiles[fileID];
                         if (openFile.TreeID == treeID)