From cc170322ed8df6650ab7aef84dbc11fd0a360eb4 Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Sat, 11 Feb 2017 11:06:21 +0200 Subject: [PATCH] Renamed variable --- SMBLibrary/Server/SMB1/Transaction2SubcommandHelper.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SMBLibrary/Server/SMB1/Transaction2SubcommandHelper.cs b/SMBLibrary/Server/SMB1/Transaction2SubcommandHelper.cs index 11d9c24..3f3aa73 100644 --- a/SMBLibrary/Server/SMB1/Transaction2SubcommandHelper.cs +++ b/SMBLibrary/Server/SMB1/Transaction2SubcommandHelper.cs @@ -41,12 +41,12 @@ namespace SMBLibrary.Server.SMB1 bool returnResumeKeys = (subcommand.Flags & FindFlags.SMB_FIND_RETURN_RESUME_KEYS) > 0; int entriesToReturn = Math.Min(subcommand.SearchCount, entries.Count); - List temp = entries.GetRange(0, entriesToReturn); + List segment = entries.GetRange(0, entriesToReturn); int maxLength = (int)state.GetMaxDataCount(header.PID).Value; FindInformationList findInformationList; try { - findInformationList = SMB1FileSystemHelper.GetFindInformationList(temp, subcommand.InformationLevel, header.UnicodeFlag, returnResumeKeys, maxLength); + findInformationList = SMB1FileSystemHelper.GetFindInformationList(segment, subcommand.InformationLevel, header.UnicodeFlag, returnResumeKeys, maxLength); } catch (UnsupportedInformationLevelException) { @@ -91,11 +91,11 @@ namespace SMBLibrary.Server.SMB1 bool returnResumeKeys = (subcommand.Flags & FindFlags.SMB_FIND_RETURN_RESUME_KEYS) > 0; int maxLength = (int)state.GetMaxDataCount(header.PID).Value; int maxCount = Math.Min(openSearch.Entries.Count - openSearch.EnumerationLocation, subcommand.SearchCount); - List temp = openSearch.Entries.GetRange(openSearch.EnumerationLocation, maxCount); + List segment = openSearch.Entries.GetRange(openSearch.EnumerationLocation, maxCount); FindInformationList findInformationList; try { - findInformationList = SMB1FileSystemHelper.GetFindInformationList(temp, subcommand.InformationLevel, header.UnicodeFlag, returnResumeKeys, maxLength); + findInformationList = SMB1FileSystemHelper.GetFindInformationList(segment, subcommand.InformationLevel, header.UnicodeFlag, returnResumeKeys, maxLength); } catch (UnsupportedInformationLevelException) { @@ -179,7 +179,7 @@ namespace SMBLibrary.Server.SMB1 header.Status = NTStatus.STATUS_INVALID_HANDLE; return null; } - + if (!share.HasReadAccess(session.UserName, openFile.Path, state.ClientEndPoint)) { header.Status = NTStatus.STATUS_ACCESS_DENIED;