RPC PDUs can now be read starting from a specified buffer offset

This commit is contained in:
Tal Aloni 2017-01-14 00:22:38 +02:00
parent f809d337c8
commit 3f36591e14
8 changed files with 37 additions and 36 deletions

View file

@ -182,7 +182,7 @@ namespace SMBLibrary.Server.SMB1
RemoteService service = ((NamedPipeShare)share).GetService(openedFilePath);
if (service != null)
{
RPCPDU rpcRequest = RPCPDU.GetPDU(data);
RPCPDU rpcRequest = RPCPDU.GetPDU(data, 0);
RPCPDU rpcReply = RemoteServiceHelper.GetRPCReply(rpcRequest, service);
byte[] replyData = rpcReply.GetBytes();
state.StoreNamedPipeReply(FID, replyData);