summaryrefslogtreecommitdiff
path: root/source3/libsmb/clitrans.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-12-01 03:24:53 +0000
committerJeremy Allison <jra@samba.org>2003-12-01 03:24:53 +0000
commitf9a2ba6e911d6c90ffd030a5ed928f41c919f78a (patch)
tree2c7ada155ef7c8e507305a045c8470a615d66026 /source3/libsmb/clitrans.c
parentc05411beae9969b1dca9de1412a7a5f432915d51 (diff)
downloadsamba-f9a2ba6e911d6c90ffd030a5ed928f41c919f78a.tar.gz
samba-f9a2ba6e911d6c90ffd030a5ed928f41c919f78a.tar.bz2
samba-f9a2ba6e911d6c90ffd030a5ed928f41c919f78a.zip
Ensure we use the same mid for the secondary trans requests, W2K3
does this. Jeremy. (This used to be commit e5bb3fdf4c8b2bb5b098bfbc0b4b80d947aeac6c)
Diffstat (limited to 'source3/libsmb/clitrans.c')
-rw-r--r--source3/libsmb/clitrans.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c
index 1602dcc683..ae44ca1a77 100644
--- a/source3/libsmb/clitrans.c
+++ b/source3/libsmb/clitrans.c
@@ -143,6 +143,9 @@ BOOL cli_send_trans(struct cli_state *cli, int trans,
if (!cli_send_smb(cli)) {
return False;
}
+
+ /* Ensure we use the same mid for the secondaries. */
+ cli->mid = mid;
tot_data += this_ldata;
tot_param += this_lparam;
@@ -446,6 +449,9 @@ BOOL cli_send_nt_trans(struct cli_state *cli,
return False;
}
+ /* Ensure we use the same mid for the secondaries. */
+ cli->mid = mid;
+
tot_data += this_ldata;
tot_param += this_lparam;
}