summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-21 16:30:09 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-24 19:02:33 +0100
commitb01d80a25eec366fc8f28d2f845a8378efc0c653 (patch)
treeab34cc3c4cad46824b3b6ccfcc9987fc4523af3f /source3
parentcc67f7e5489cdafbb5b365416a533f79c63e9060 (diff)
downloadsamba-b01d80a25eec366fc8f28d2f845a8378efc0c653.tar.gz
samba-b01d80a25eec366fc8f28d2f845a8378efc0c653.tar.bz2
samba-b01d80a25eec366fc8f28d2f845a8378efc0c653.zip
s3:smb2cli: zero tid in smb2cli_tdis*
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smb2cli_tcon.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/smb2cli_tcon.c b/source3/libsmb/smb2cli_tcon.c
index 4e92333499..731a6102cb 100644
--- a/source3/libsmb/smb2cli_tcon.c
+++ b/source3/libsmb/smb2cli_tcon.c
@@ -170,6 +170,7 @@ NTSTATUS smb2cli_tcon(struct cli_state *cli, const char *share)
}
struct smb2cli_tdis_state {
+ struct cli_state *cli;
uint8_t fixed[4];
};
@@ -187,6 +188,7 @@ struct tevent_req *smb2cli_tdis_send(TALLOC_CTX *mem_ctx,
if (req == NULL) {
return NULL;
}
+ state->cli = cli;
SSVAL(state->fixed, 0, 4);
subreq = smb2cli_req_send(state, ev, cli->conn, SMB2_OP_TDIS,
@@ -209,6 +211,9 @@ static void smb2cli_tdis_done(struct tevent_req *subreq)
struct tevent_req *req =
tevent_req_callback_data(subreq,
struct tevent_req);
+ struct smb2cli_tdis_state *state =
+ tevent_req_data(req,
+ struct smb2cli_tdis_state);
NTSTATUS status;
struct iovec *iov;
static const struct smb2cli_req_expected_response expected[] = {
@@ -224,6 +229,7 @@ static void smb2cli_tdis_done(struct tevent_req *subreq)
if (tevent_req_nterror(req, status)) {
return;
}
+ state->cli->smb2.tid = 0;
tevent_req_done(req);
}