summaryrefslogtreecommitdiff
path: root/source4/torture/basic
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-30 01:29:53 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-30 01:29:53 +0200
commitc8a19f0b8373bec27f4d3638bb731963896f3ff5 (patch)
tree468bb95a6325a34fe0d7fc4129c3c506f4c72146 /source4/torture/basic
parent21df9532f54ad15c308630672f3b8a6dc4ce6294 (diff)
downloadsamba-c8a19f0b8373bec27f4d3638bb731963896f3ff5.tar.gz
samba-c8a19f0b8373bec27f4d3638bb731963896f3ff5.tar.bz2
samba-c8a19f0b8373bec27f4d3638bb731963896f3ff5.zip
Pass options struct into session initialization functions rather than
using global_loadparm.
Diffstat (limited to 'source4/torture/basic')
-rw-r--r--source4/torture/basic/secleak.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/basic/secleak.c b/source4/torture/basic/secleak.c
index 4caeee72a4..ca1fd444d9 100644
--- a/source4/torture/basic/secleak.c
+++ b/source4/torture/basic/secleak.c
@@ -36,8 +36,11 @@ static bool try_failed_login(struct torture_context *tctx, struct smbcli_state *
NTSTATUS status;
struct smb_composite_sesssetup setup;
struct smbcli_session *session;
+ struct smbcli_session_options options;
- session = smbcli_session_init(cli->transport, cli, false);
+ lp_smbcli_session_options(tctx->lp_ctx, &options);
+
+ session = smbcli_session_init(cli->transport, cli, false, options);
setup.in.sesskey = cli->transport->negotiate.sesskey;
setup.in.capabilities = cli->transport->negotiate.capabilities;
setup.in.workgroup = lp_workgroup(tctx->lp_ctx);