summaryrefslogtreecommitdiff
path: root/libcli/smb/smb2cli_close.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-25 10:36:27 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-25 12:15:04 +0200
commit7de4ae7f9fbf642899afd8c89d0b3af72155e022 (patch)
tree74d0860ceb0ddc18634d135334fb10e4e4170010 /libcli/smb/smb2cli_close.c
parent57fda88dfb685ca9ba84cda6799efcc2224e242f (diff)
downloadsamba-7de4ae7f9fbf642899afd8c89d0b3af72155e022.tar.gz
libcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()
metze
Diffstat (limited to 'libcli/smb/smb2cli_close.c')
-rw-r--r--libcli/smb/smb2cli_close.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libcli/smb/smb2cli_close.c b/libcli/smb/smb2cli_close.c
index 42ed65a5de2..05877702baa 100644
--- a/libcli/smb/smb2cli_close.c
+++ b/libcli/smb/smb2cli_close.c
@@ -42,7 +42,6 @@ struct tevent_req *smb2cli_close_send(TALLOC_CTX *mem_ctx,
struct tevent_req *req, *subreq;
struct smb2cli_close_state *state;
uint8_t *fixed;
- uint32_t tcon_id = 0;
req = tevent_req_create(mem_ctx, &state,
struct smb2cli_close_state);
@@ -55,15 +54,11 @@ struct tevent_req *smb2cli_close_send(TALLOC_CTX *mem_ctx,
SBVAL(fixed, 8, fid_persistent);
SBVAL(fixed, 16, fid_volatile);
- if (tcon) {
- tcon_id = smb2cli_tcon_current_id(tcon);
- }
-
subreq = smb2cli_req_send(state, ev, conn, SMB2_OP_CLOSE,
0, 0, /* flags */
timeout_msec,
0xFEFF, /* pid */
- tcon_id,
+ tcon,
session,
state->fixed, sizeof(state->fixed),
NULL, 0);