summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2021-11-19 14:44:05 -0800
committerJule Anger <janger@samba.org>2022-01-31 12:23:53 +0100
commitbfcf165b29b30dd1f8037ab0f9a9e03731d2642f (patch)
tree1d57bbd233aee17a438fd6f928eb361fd99c50fb
parentc032a254bb5b703f510c42880ea5416982df9577 (diff)
downloadsamba-bfcf165b29b30dd1f8037ab0f9a9e03731d2642f.tar.gz
CVE-2021-44141: s4: torture: In raw.search:test_one_file() add a second connection.
Change from torture_suite_add_1smb_test() to torture_suite_add_2smb_test(). Not yet used. We will need this to do SMB1+POSIX search calls on a connection on which we have negotiated SMB1+POSIX. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14911 Signed-off-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source4/torture/raw/search.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c
index 9b140928689..f6ad569dd4b 100644
--- a/source4/torture/raw/search.c
+++ b/source4/torture/raw/search.c
@@ -300,8 +300,9 @@ static union smb_search_data *find(const char *name)
/*
basic testing of all RAW_SEARCH_* calls using a single file
*/
-static bool test_one_file(struct torture_context *tctx,
- struct smbcli_state *cli)
+static bool test_one_file(struct torture_context *tctx,
+ struct smbcli_state *cli,
+ struct smbcli_state *cli_unix)
{
bool ret = true;
int fnum;
@@ -1571,7 +1572,7 @@ struct torture_suite *torture_raw_search(TALLOC_CTX *mem_ctx)
{
struct torture_suite *suite = torture_suite_create(mem_ctx, "search");
- torture_suite_add_1smb_test(suite, "one file search", test_one_file);
+ torture_suite_add_2smb_test(suite, "one file search", test_one_file);
torture_suite_add_1smb_test(suite, "many files", test_many_files);
torture_suite_add_1smb_test(suite, "sorted", test_sorted);
torture_suite_add_1smb_test(suite, "modify search", test_modify_search);