From 3971827b6ee7c84beaf4449e3c12dfe9f2d62c77 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 10 Dec 2007 18:42:04 +0100 Subject: r26384: Fix another global_loadparm instance. (This used to be commit 881ec40d7a4c97863abee5740187e9aa0a1801bb) --- source4/libcli/cliconnect.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c index d70f592d9d..a170024def 100644 --- a/source4/libcli/cliconnect.c +++ b/source4/libcli/cliconnect.c @@ -66,7 +66,8 @@ NTSTATUS smbcli_negprot(struct smbcli_state *cli, bool unicode, int maxprotocol) /* wrapper around smb_raw_sesssetup() */ NTSTATUS smbcli_session_setup(struct smbcli_state *cli, - struct cli_credentials *credentials) + struct cli_credentials *credentials, + const char *workgroup) { struct smb_composite_sesssetup setup; NTSTATUS status; @@ -77,7 +78,7 @@ NTSTATUS smbcli_session_setup(struct smbcli_state *cli, setup.in.sesskey = cli->transport->negotiate.sesskey; setup.in.capabilities = cli->transport->negotiate.capabilities; setup.in.credentials = credentials; - setup.in.workgroup = lp_workgroup(global_loadparm); + setup.in.workgroup = workgroup; status = smb_composite_sesssetup(cli->session, &setup); -- cgit