summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-05-25 23:50:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:48 -0500
commit4d6caa09e2b8c1c26f3dde832586d871bbbc2dda (patch)
treec17d6f9a7ccb6a32ab7ea6bc356b24c95a431b23
parentad5ff1b8090b225b7ac6d5b7ec08d9f70633db5e (diff)
downloadsamba-4d6caa09e2b8c1c26f3dde832586d871bbbc2dda.tar.gz
samba-4d6caa09e2b8c1c26f3dde832586d871bbbc2dda.tar.bz2
samba-4d6caa09e2b8c1c26f3dde832586d871bbbc2dda.zip
r23148: Fix old old bug in cli_smbwrite() (not incrementing
data being sent). Patch from mnix@wanm.com.au. Jeremy. (This used to be commit 2524d85465ba5406e684199c10f59e685ab860b5)
-rw-r--r--source3/libsmb/clireadwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index 35d2afe2e7..c31d417fbd 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -443,7 +443,7 @@ ssize_t cli_smbwrite(struct cli_state *cli,
p = smb_buf(cli->outbuf);
*p++ = 1;
SSVAL(p, 0, size); p += 2;
- memcpy(p, buf, size); p += size;
+ memcpy(p, buf + total, size); p += size;
cli_setup_bcc(cli, p);