summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-13 15:06:03 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-13 18:12:22 +0200
commit90d95f34f317d590bcb762e52fa4b35a01af598b (patch)
treedc994837861a41095c499cbfcc6b574f3eabb381 /source3
parent53c0f001f25f7c9e1246ea46e66ee07997a34b03 (diff)
downloadsamba-90d95f34f317d590bcb762e52fa4b35a01af598b.tar.gz
samba-90d95f34f317d590bcb762e52fa4b35a01af598b.tar.bz2
samba-90d95f34f317d590bcb762e52fa4b35a01af598b.zip
s3:libsmb: set the MID to 0 in cli_setup_packet_buf()
It's allocated when sending the request. metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clientgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 21ecab840a..7473bfa7f8 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -71,7 +71,7 @@ void cli_setup_packet_buf(struct cli_state *cli, char *buf)
SSVAL(buf,smb_pid,cli->smb1.pid);
memset(buf+smb_pidhigh, 0, 12);
SSVAL(buf,smb_uid, cli_state_get_uid(cli));
- SSVAL(buf,smb_mid,cli->smb1.mid);
+ SSVAL(buf,smb_mid, 0);
if (cli_state_protocol(cli) <= PROTOCOL_CORE) {
return;