summaryrefslogtreecommitdiffstats
path: root/source4/libcli/cliconnect.c
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/libcli/cliconnect.c
parent21df9532f54ad15c308630672f3b8a6dc4ce6294 (diff)
downloadsamba-c8a19f0b8373bec27f4d3638bb731963896f3ff5.tar.gz
samba-c8a19f0b8373bec27f4d3638bb731963896f3ff5.tar.xz
samba-c8a19f0b8373bec27f4d3638bb731963896f3ff5.zip
Pass options struct into session initialization functions rather than
using global_loadparm.
Diffstat (limited to 'source4/libcli/cliconnect.c')
-rw-r--r--source4/libcli/cliconnect.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c
index c20a7fd9353..6fb9f130a9d 100644
--- a/source4/libcli/cliconnect.c
+++ b/source4/libcli/cliconnect.c
@@ -73,8 +73,12 @@ NTSTATUS smbcli_session_setup(struct smbcli_state *cli,
{
struct smb_composite_sesssetup setup;
NTSTATUS status;
+ struct smbcli_session_options options;
- cli->session = smbcli_session_init(cli->transport, cli, true);
+ lp_smbcli_session_options(global_loadparm, &options);
+
+ cli->session = smbcli_session_init(cli->transport, cli, true,
+ options);
if (!cli->session) return NT_STATUS_UNSUCCESSFUL;
setup.in.sesskey = cli->transport->negotiate.sesskey;