summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-23 22:32:49 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-24 22:20:06 +0200
commit86a5ab731be6eb0fec7eb85a3ae4660bf8576c6d (patch)
tree6d67fe0811728c966a678a93dcada19313b6c6bd /source3
parent697b82a61979b48de86d74d2bf5c498032ff49b1 (diff)
downloadsamba-86a5ab731be6eb0fec7eb85a3ae4660bf8576c6d.tar.gz
samba-86a5ab731be6eb0fec7eb85a3ae4660bf8576c6d.tar.bz2
samba-86a5ab731be6eb0fec7eb85a3ae4660bf8576c6d.zip
libcli/smb: pass smbXcli_tcon to smb2cli_write*()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cli_np_tstream.c2
-rw-r--r--source3/torture/test_smb2.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/source3/libsmb/cli_np_tstream.c b/source3/libsmb/cli_np_tstream.c
index 2ec33d5ac4..8933bc4210 100644
--- a/source3/libsmb/cli_np_tstream.c
+++ b/source3/libsmb/cli_np_tstream.c
@@ -491,7 +491,7 @@ static void tstream_cli_np_writev_write_next(struct tevent_req *req)
cli_nps->cli->conn,
cli_nps->cli->timeout,
cli_nps->cli->smb2.session,
- cli_nps->cli->smb2.tid,
+ cli_nps->cli->smb2.tcon,
cli_nps->write.ofs, /* length */
0, /* offset */
cli_nps->fid_persistent,
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c
index ba5cb8ffba..506db5627e 100644
--- a/source3/torture/test_smb2.c
+++ b/source3/torture/test_smb2.c
@@ -90,7 +90,7 @@ bool run_smb2_basic(int dummy)
}
status = smb2cli_write(cli->conn, cli->timeout, cli->smb2.session,
- cli->smb2.tid, strlen(hello), 0, fid_persistent,
+ cli->smb2.tcon, strlen(hello), 0, fid_persistent,
fid_volatile, 0, 0, (const uint8_t *)hello);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_write returned %s\n", nt_errstr(status));
@@ -340,7 +340,7 @@ bool run_smb2_session_reconnect(int dummy)
}
status = smb2cli_write(cli1->conn, cli1->timeout, cli1->smb2.session,
- cli1->smb2.tid, strlen(hello), 0, fid_persistent,
+ cli1->smb2.tcon, strlen(hello), 0, fid_persistent,
fid_volatile, 0, 0, (const uint8_t *)hello);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_write returned %s\n", nt_errstr(status));
@@ -537,7 +537,7 @@ bool run_smb2_session_reconnect(int dummy)
}
status = smb2cli_write(cli2->conn, cli2->timeout, cli2->smb2.session,
- cli2->smb2.tid, strlen(hello), 0, fid_persistent,
+ cli2->smb2.tcon, strlen(hello), 0, fid_persistent,
fid_volatile, 0, 0, (const uint8_t *)hello);
if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED) &&
!NT_STATUS_EQUAL(status, NT_STATUS_NETWORK_NAME_DELETED))
@@ -599,7 +599,7 @@ bool run_smb2_session_reconnect(int dummy)
}
status = smb2cli_write(cli2->conn, cli2->timeout, cli2->smb2.session,
- cli2->smb2.tid, strlen(hello), 0, fid_persistent,
+ cli2->smb2.tcon, strlen(hello), 0, fid_persistent,
fid_volatile, 0, 0, (const uint8_t *)hello);
if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED) &&
!NT_STATUS_EQUAL(status, NT_STATUS_NETWORK_NAME_DELETED))
@@ -664,7 +664,7 @@ bool run_smb2_session_reconnect(int dummy)
}
status = smb2cli_write(cli2->conn, cli2->timeout, cli2->smb2.session,
- cli2->smb2.tid, strlen(hello), 0, fid_persistent,
+ cli2->smb2.tcon, strlen(hello), 0, fid_persistent,
fid_volatile, 0, 0, (const uint8_t *)hello);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_write returned %s\n", nt_errstr(status));
@@ -760,7 +760,7 @@ bool run_smb2_tcon_dependence(int dummy)
}
status = smb2cli_write(cli->conn, cli->timeout, cli->smb2.session,
- cli->smb2.tid, strlen(hello), 0, fid_persistent,
+ cli->smb2.tcon, strlen(hello), 0, fid_persistent,
fid_volatile, 0, 0, (const uint8_t *)hello);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_write returned %s\n", nt_errstr(status));
@@ -1173,7 +1173,7 @@ bool run_smb2_multi_channel(int dummy)
}
status = smb2cli_write(cli1->conn, cli1->timeout, cli1->smb2.session,
- cli1->smb2.tid, strlen(hello), 0, fid_persistent,
+ cli1->smb2.tcon, strlen(hello), 0, fid_persistent,
fid_volatile, 0, 0, (const uint8_t *)hello);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_write returned %s\n", nt_errstr(status));