1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

r1603: fixed in.size to not overstate the packet size by 4 bytes

my apologies to abartlett for thinking this was his bug!
(This used to be commit 6edbc55ddd2fc0d4686ec3075ba9bfc72ac24315)
This commit is contained in:
Andrew Tridgell 2004-07-29 09:30:54 +00:00 committed by Gerald (Jerry) Carter
parent b5061894dc
commit 2de2ead42d

View File

@ -298,7 +298,7 @@ static void cli_transport_finish_recv(struct cli_transport *transport)
req->in.buffer = buffer;
talloc_steal(transport->mem_ctx, req->mem_ctx, buffer);
req->in.size = len + NBT_HDR_SIZE;
req->in.size = len;
req->in.allocated = req->in.size;
goto async;
}
@ -322,7 +322,7 @@ static void cli_transport_finish_recv(struct cli_transport *transport)
/* fill in the 'in' portion of the matching request */
req->in.buffer = buffer;
talloc_steal(transport->mem_ctx, req->mem_ctx, buffer);
req->in.size = len + NBT_HDR_SIZE;
req->in.size = len;
req->in.allocated = req->in.size;
/* handle non-SMB replies */