diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-07-29 09:30:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:57:43 -0500 |
commit | 2de2ead42d93804d94407aaa92fc9dca4ed87129 (patch) | |
tree | 03eb54bd1ca021f639566fba76ab82562ee32f64 | |
parent | b5061894dc91cd307d0e6b9157b36bd4f36a5c41 (diff) | |
download | samba-2de2ead42d93804d94407aaa92fc9dca4ed87129.tar.gz samba-2de2ead42d93804d94407aaa92fc9dca4ed87129.tar.bz2 samba-2de2ead42d93804d94407aaa92fc9dca4ed87129.zip |
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)
-rw-r--r-- | source4/libcli/raw/clitransport.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |