mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3:torture/test_smb2: test a tree_connect during reauth
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Feb 28 06:58:44 CET 2012 on sn-devel-104
This commit is contained in:
parent
c64a85ee19
commit
43dd033618
@ -1045,6 +1045,7 @@ bool run_smb2_session_reauth(int dummy)
|
||||
DATA_BLOB out_blob;
|
||||
struct auth_generic_state *auth_generic_state;
|
||||
struct iovec *recv_iov;
|
||||
uint32_t saved_tid;
|
||||
|
||||
printf("Starting SMB2-SESSION_REAUTH\n");
|
||||
|
||||
@ -1251,6 +1252,14 @@ bool run_smb2_session_reauth(int dummy)
|
||||
return false;
|
||||
}
|
||||
|
||||
saved_tid = cli->smb2.tid;
|
||||
status = cli_tree_connect(cli, share, "?????", "", 0);
|
||||
if (!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_HANDLE)) {
|
||||
printf("cli_tree_connect returned %s\n", nt_errstr(status));
|
||||
return false;
|
||||
}
|
||||
cli->smb2.tid = saved_tid;
|
||||
|
||||
subreq = smb2cli_session_setup_send(talloc_tos(), ev,
|
||||
cli->conn,
|
||||
cli->timeout,
|
||||
@ -1328,5 +1337,13 @@ bool run_smb2_session_reauth(int dummy)
|
||||
return false;
|
||||
}
|
||||
|
||||
saved_tid = cli->smb2.tid;
|
||||
status = cli_tree_connect(cli, share, "?????", "", 0);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("cli_tree_connect returned %s\n", nt_errstr(status));
|
||||
return false;
|
||||
}
|
||||
cli->smb2.tid = saved_tid;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user