From: Jeremy Allison Date: Mon, 1 Dec 2003 03:24:53 +0000 (+0000) Subject: Ensure we use the same mid for the secondary trans requests, W2K3 X-Git-Tag: samba-3.0.1rc1~5^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5bb3fdf4c8b2bb5b098bfbc0b4b80d947aeac6c;p=thirdparty%2Fsamba.git Ensure we use the same mid for the secondary trans requests, W2K3 does this. Jeremy. --- diff --git a/source/libsmb/clitrans.c b/source/libsmb/clitrans.c index 1602dcc6839..ae44ca1a779 100644 --- a/source/libsmb/clitrans.c +++ b/source/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; }