diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-02-28 05:11:23 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-02-28 06:58:44 +0100 |
commit | 43dd03361882af335c6b5d6989ad3894621b5039 (patch) | |
tree | 7530ffdcc8a90ee944329b266676e19e1798c591 | |
parent | c64a85ee191d1554cbbd662809de0a57d8de6c69 (diff) | |
download | samba-43dd03361882af335c6b5d6989ad3894621b5039.tar.gz samba-43dd03361882af335c6b5d6989ad3894621b5039.tar.bz2 samba-43dd03361882af335c6b5d6989ad3894621b5039.zip |
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
-rw-r--r-- | source3/torture/test_smb2.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c index b29f913ef6..83d59ffbeb 100644 --- a/source3/torture/test_smb2.c +++ b/source3/torture/test_smb2.c @@ -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; } |