mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
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 c85de4b7b5
)
This commit is contained in:
parent
6ba8c105c5
commit
2a93452994
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user