Ensure we use the same mid for the secondary trans requests, W2K3
authorJeremy Allison <jra@samba.org>
Mon, 1 Dec 2003 03:24:53 +0000 (03:24 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 1 Dec 2003 03:24:53 +0000 (03:24 +0000)
does this.
Jeremy.
(This used to be commit e5bb3fdf4c8b2bb5b098bfbc0b4b80d947aeac6c)

source3/libsmb/clitrans.c

index 1602dcc6839f044f40ec4a81b1ee13acf6ac6542..ae44ca1a779959f0c9e10fbd874d84e0b460a7a5 100644 (file)
@@ -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;
                }