mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-11 09:59:19 +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;
|
reply.Header = header;
|
||||||
for (int index = 0; index < responses.Count; index++)
|
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]);
|
reply.Commands.Add(responses[index]);
|
||||||
responses.RemoveAt(index);
|
responses.RemoveAt(index);
|
||||||
index--;
|
index--;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
EnqueueMessage(state, reply);
|
EnqueueMessage(state, reply);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue