git.samba.org
/
anatoliy
/
anatoliy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af081ec
)
s3: Fix bug 7635
author
Volker Lendecke
<vl@samba.org>
Sat, 21 Aug 2010 09:32:58 +0000
(11:32 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sat, 21 Aug 2010 09:55:46 +0000
(11:55 +0200)
source3/libsmb/climessage.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/climessage.c
b/source3/libsmb/climessage.c
index bdf2977af9c4cff744d397b402dec5bcbe7ca7fb..3777c41482200982bf70aab1c4224061364c6eba 100644
(file)
--- 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);