diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-07-23 22:32:49 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-07-24 22:20:06 +0200 |
commit | 6612c831a3eb62da7766152e597168b9cec9b8fc (patch) | |
tree | a28202fd96884142b8339944a47d70541965812f /source3/torture | |
parent | 86a5ab731be6eb0fec7eb85a3ae4660bf8576c6d (diff) | |
download | samba-6612c831a3eb62da7766152e597168b9cec9b8fc.tar.gz samba-6612c831a3eb62da7766152e597168b9cec9b8fc.tar.bz2 samba-6612c831a3eb62da7766152e597168b9cec9b8fc.zip |
libcli/smb: pass smbXcli_tcon to smb2cli_flush*()
metze
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/test_smb2.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c index 506db5627e..a511f18647 100644 --- a/source3/torture/test_smb2.c +++ b/source3/torture/test_smb2.c @@ -98,7 +98,7 @@ bool run_smb2_basic(int dummy) } status = smb2cli_flush(cli->conn, cli->timeout, cli->smb2.session, - cli->smb2.tid, fid_persistent, fid_volatile); + cli->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; @@ -348,7 +348,7 @@ bool run_smb2_session_reconnect(int dummy) } status = smb2cli_flush(cli1->conn, cli1->timeout, cli1->smb2.session, - cli1->smb2.tid, fid_persistent, fid_volatile); + cli1->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; @@ -510,7 +510,7 @@ bool run_smb2_session_reconnect(int dummy) /* check file operation on the old client */ status = smb2cli_flush(cli1->conn, cli1->timeout, cli1->smb2.session, - cli1->smb2.tid, fid_persistent, fid_volatile); + cli1->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_EQUAL(status, NT_STATUS_USER_SESSION_DELETED)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; @@ -528,7 +528,7 @@ bool run_smb2_session_reconnect(int dummy) * while create gives ACCESS_DENIED without signing */ status = smb2cli_flush(cli2->conn, cli2->timeout, cli2->smb2.session, - cli2->smb2.tid, fid_persistent, fid_volatile); + cli2->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED) && !NT_STATUS_EQUAL(status, NT_STATUS_NETWORK_NAME_DELETED)) { @@ -590,7 +590,7 @@ bool run_smb2_session_reconnect(int dummy) cli2->smb2.tid = cli1->smb2.tid; status = smb2cli_flush(cli2->conn, cli2->timeout, cli2->smb2.session, - cli2->smb2.tid, fid_persistent, fid_volatile); + cli2->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED) && !NT_STATUS_EQUAL(status, NT_STATUS_NETWORK_NAME_DELETED)) { @@ -672,7 +672,7 @@ bool run_smb2_session_reconnect(int dummy) } status = smb2cli_flush(cli2->conn, cli2->timeout, cli2->smb2.session, - cli2->smb2.tid, fid_persistent, fid_volatile); + cli2->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; @@ -768,7 +768,7 @@ bool run_smb2_tcon_dependence(int dummy) } status = smb2cli_flush(cli->conn, cli->timeout, cli->smb2.session, - cli->smb2.tid, fid_persistent, fid_volatile); + cli->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; @@ -1181,21 +1181,21 @@ bool run_smb2_multi_channel(int dummy) } status = smb2cli_flush(cli2->conn, cli2->timeout, cli2->smb2.session, - cli2->smb2.tid, fid_persistent, fid_volatile); + cli2->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; } status = smb2cli_flush(cli1->conn, cli1->timeout, cli1->smb2.session, - cli1->smb2.tid, fid_persistent, fid_volatile); + cli1->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; } status = smb2cli_flush(cli3->conn, cli3->timeout, cli3->smb2.session, - cli3->smb2.tid, fid_persistent, fid_volatile); + cli3->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; @@ -1295,21 +1295,21 @@ bool run_smb2_multi_channel(int dummy) } status = smb2cli_flush(cli1->conn, cli1->timeout, cli1->smb2.session, - cli1->smb2.tid, fid_persistent, fid_volatile); + cli1->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; } status = smb2cli_flush(cli2->conn, cli2->timeout, cli2->smb2.session, - cli2->smb2.tid, fid_persistent, fid_volatile); + cli2->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; } status = smb2cli_flush(cli3->conn, cli3->timeout, cli3->smb2.session, - cli3->smb2.tid, fid_persistent, fid_volatile); + cli3->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; @@ -1402,21 +1402,21 @@ bool run_smb2_multi_channel(int dummy) } status = smb2cli_flush(cli3->conn, cli3->timeout, cli3->smb2.session, - cli3->smb2.tid, fid_persistent, fid_volatile); + cli3->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; } status = smb2cli_flush(cli2->conn, cli2->timeout, cli2->smb2.session, - cli2->smb2.tid, fid_persistent, fid_volatile); + cli2->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; } status = smb2cli_flush(cli1->conn, cli1->timeout, cli1->smb2.session, - cli1->smb2.tid, fid_persistent, fid_volatile); + cli1->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; @@ -1605,7 +1605,7 @@ bool run_smb2_session_reauth(int dummy) } status = smb2cli_flush(cli->conn, cli->timeout, cli->smb2.session, - cli->smb2.tid, fid_persistent, fid_volatile); + cli->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; @@ -1755,7 +1755,7 @@ bool run_smb2_session_reauth(int dummy) } status = smb2cli_flush(cli->conn, cli->timeout, cli->smb2.session, - cli->smb2.tid, fid_persistent, fid_volatile); + cli->smb2.tcon, fid_persistent, fid_volatile); if (!NT_STATUS_IS_OK(status)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); return false; |