summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorLuk Claes <luk@debian.org>2012-05-10 18:32:49 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-12 00:44:41 +0200
commitf6db3d7bef750d48079ff56535f48c9923e5f4c8 (patch)
tree35a53ec537bd5fe9a2fd396956d455552ba58acf /source3/torture
parent14473f37f5a3cd4749f5c4f937fef37cc5ea8c47 (diff)
downloadsamba-f6db3d7bef750d48079ff56535f48c9923e5f4c8.tar.gz
samba-f6db3d7bef750d48079ff56535f48c9923e5f4c8.tar.bz2
samba-f6db3d7bef750d48079ff56535f48c9923e5f4c8.zip
s3/libsmb: Generalise cli_state in smb2 close calls
Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/test_smb2.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c
index 1a4eed95cc..90e065e94f 100644
--- a/source3/torture/test_smb2.c
+++ b/source3/torture/test_smb2.c
@@ -122,7 +122,8 @@ bool run_smb2_basic(int dummy)
return false;
}
- status = smb2cli_close(cli, 0, fid_persistent, fid_volatile);
+ status = smb2cli_close(cli->conn, cli->timeout, cli->smb2.session,
+ cli->smb2.tid, 0, fid_persistent, fid_volatile);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_close returned %s\n", nt_errstr(status));
return false;
@@ -155,7 +156,8 @@ bool run_smb2_basic(int dummy)
return false;
}
- status = smb2cli_close(cli, 0, fid_persistent, fid_volatile);
+ status = smb2cli_close(cli->conn, cli->timeout, cli->smb2.session,
+ cli->smb2.tid, 0, fid_persistent, fid_volatile);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_close returned %s\n", nt_errstr(status));
return false;
@@ -1336,7 +1338,8 @@ bool run_smb2_multi_channel(int dummy)
return false;
}
- status = smb2cli_close(cli3, 0, fid_persistent, fid_volatile);
+ status = smb2cli_close(cli3->conn, cli3->timeout, cli3->smb2.session,
+ cli3->smb2.tid, 0, fid_persistent, fid_volatile);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_close returned %s\n", nt_errstr(status));
return false;
@@ -1769,7 +1772,8 @@ bool run_smb2_session_reauth(int dummy)
return false;
}
- status = smb2cli_close(cli, 0, fid_persistent, fid_volatile);
+ status = smb2cli_close(cli->conn, cli->timeout, cli->smb2.session,
+ cli->smb2.tid, 0, fid_persistent, fid_volatile);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_close returned %s\n", nt_errstr(status));
return false;
@@ -1800,13 +1804,15 @@ bool run_smb2_session_reauth(int dummy)
return false;
}
- status = smb2cli_close(cli, 0, dir_persistent, dir_volatile);
+ status = smb2cli_close(cli->conn, cli->timeout, cli->smb2.session,
+ cli->smb2.tid, 0, dir_persistent, dir_volatile);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_close returned %s\n", nt_errstr(status));
return false;
}
- status = smb2cli_close(cli, 0, fid_persistent, fid_volatile);
+ status = smb2cli_close(cli->conn, cli->timeout, cli->smb2.session,
+ cli->smb2.tid, 0, fid_persistent, fid_volatile);
if (!NT_STATUS_IS_OK(status)) {
printf("smb2cli_close returned %s\n", nt_errstr(status));
return false;