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

This commit is contained in:
Tal Aloni 2017-09-28 16:11:56 +03:00
parent fcd737a1f4
commit 5276088159

View file

@ -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)