summaryrefslogtreecommitdiff
path: root/source3/libsmb/climessage.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-21 11:32:58 +0200
committerVolker Lendecke <vl@samba.org>2010-08-21 11:55:46 +0200
commit554b1140a891d8b9a4a7be1eefae97b4e3a710ec (patch)
treeffc30bcf4eb2fcf5081d4d48309a6fde69e51918 /source3/libsmb/climessage.c
parentaf081ec4a101aa5d0babfd913e40f5f8ed1b0fe9 (diff)
downloadsamba-554b1140a891d8b9a4a7be1eefae97b4e3a710ec.tar.gz
samba-554b1140a891d8b9a4a7be1eefae97b4e3a710ec.tar.bz2
samba-554b1140a891d8b9a4a7be1eefae97b4e3a710ec.zip
s3: Fix bug 7635
Diffstat (limited to 'source3/libsmb/climessage.c')
-rw-r--r--source3/libsmb/climessage.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libsmb/climessage.c b/source3/libsmb/climessage.c
index bdf2977af9..3777c41482 100644
--- a/source3/libsmb/climessage.c
+++ b/source3/libsmb/climessage.c
@@ -63,8 +63,10 @@ static struct tevent_req *cli_message_start_send(TALLOC_CTX *mem_ctx,
*p++ = 4;
memcpy(p, utmp, ulen);
+ p += ulen;
*p++ = 4;
memcpy(p, htmp, hlen);
+ p += hlen;
TALLOC_FREE(htmp);
TALLOC_FREE(utmp);
@@ -165,8 +167,8 @@ static struct tevent_req *cli_message_text_send(TALLOC_CTX *mem_ctx,
TALLOC_FREE(tmp);
return tevent_req_post(req, ev);
}
- SCVAL(bytes, 0, 0); /* pad */
- SSVAL(bytes, 1, msglen);
+ SCVAL(bytes, 0, 1); /* pad */
+ SSVAL(bytes+1, 0, msglen);
memcpy(bytes+3, msg, msglen);
TALLOC_FREE(tmp);