From 2de2ead42d93804d94407aaa92fc9dca4ed87129 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 29 Jul 2004 09:30:54 +0000 Subject: 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) --- source4/libcli/raw/clitransport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/libcli/raw') diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c index 96d5a18a71..abdcc0d392 100644 --- a/source4/libcli/raw/clitransport.c +++ b/source4/libcli/raw/clitransport.c @@ -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 */ -- cgit