summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2008-09-09 14:39:45 +0200
committerVolker Lendecke <vl@samba.org>2008-09-09 17:37:34 +0200
commit2a934529942feb1b9411b5351e27cb0b5718ea34 (patch)
treead2756deaa38bb233d5646746843753e3e64358f /source3
parent6ba8c105c541636ee79e20eb7c5547ed6d8117e2 (diff)
downloadsamba-2a934529942feb1b9411b5351e27cb0b5718ea34.tar.gz
samba-2a934529942feb1b9411b5351e27cb0b5718ea34.tar.bz2
samba-2a934529942feb1b9411b5351e27cb0b5718ea34.zip
Move setting the mid field in req->outbuf from _cork to _uncork
The async trans calls need this, as for secondary trans calls they have to modify the MID from what cli_request_chain() gave us. (This used to be commit c85de4b7b5db8b54b8bf0f91acbd6d08d1b0bc9d)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/async_smb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index c875acbe48..eedc7d4481 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -437,7 +437,6 @@ bool cli_chain_cork(struct cli_state *cli, struct event_context *ev,
cli_setup_packet_buf(cli, req->outbuf);
req->mid = cli_new_mid(cli);
- SSVAL(req->outbuf, smb_mid, req->mid);
cli->chain_accumulator = req;
@@ -468,6 +467,7 @@ void cli_chain_uncork(struct cli_state *cli)
cli->chain_accumulator = NULL;
+ SSVAL(req->outbuf, smb_mid, req->mid);
smb_setlen(req->outbuf, talloc_get_size(req->outbuf) - 4);
cli_calculate_sign_mac(cli, req->outbuf);