mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-02 14:01:50 +02:00
Corrected assembly of AndX Response chain
This commit is contained in:
parent
b08850d7af
commit
d715acb050
1 changed files with 6 additions and 1 deletions
|
@ -42,12 +42,17 @@ namespace SMBLibrary.Server
|
|||
reply.Header = header;
|
||||
for (int index = 0; index < responses.Count; index++)
|
||||
{
|
||||
if (responses[index] is SMBAndXCommand || index == responses.Count - 1)
|
||||
if (reply.Commands.Count == 0 ||
|
||||
reply.Commands[reply.Commands.Count - 1] is SMBAndXCommand)
|
||||
{
|
||||
reply.Commands.Add(responses[index]);
|
||||
responses.RemoveAt(index);
|
||||
index--;
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
EnqueueMessage(state, reply);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue