summaryrefslogtreecommitdiff
path: root/source4/libcli/smb_composite
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/smb_composite
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/libcli/smb_composite')
-rw-r--r--source4/libcli/smb_composite/connect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libcli/smb_composite/connect.c b/source4/libcli/smb_composite/connect.c
index e56339f96b..5f651f4865 100644
--- a/source4/libcli/smb_composite/connect.c
+++ b/source4/libcli/smb_composite/connect.c
@@ -229,12 +229,15 @@ static NTSTATUS connect_negprot(struct composite_context *c,
{
struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
NTSTATUS status;
+ struct smbcli_session_options options;
+
+ lp_smbcli_session_options(global_loadparm, &options);
status = smb_raw_negotiate_recv(state->req);
NT_STATUS_NOT_OK_RETURN(status);
/* next step is a session setup */
- state->session = smbcli_session_init(state->transport, state, true);
+ state->session = smbcli_session_init(state->transport, state, true, options);
NT_STATUS_HAVE_NO_MEMORY(state->session);
/* setup for a tconx (or at least have the structure ready to