r26674: smb_composite: Avoid use of global_loadparm.
[ira/wip.git] / source / libcli / smb_composite / connect.c
index a44765e9809f5fe2162379e5a4dbcef6838dbd29..22573442a272eae3c3f6bfa5f707834fb0dbf4e8 100644 (file)
@@ -172,8 +172,9 @@ static NTSTATUS connect_session_setup(struct composite_context *c,
 
                state->io_setup->in.credentials = cli_credentials_init(state);
                NT_STATUS_HAVE_NO_MEMORY(state->io_setup->in.credentials);
 
                state->io_setup->in.credentials = cli_credentials_init(state);
                NT_STATUS_HAVE_NO_MEMORY(state->io_setup->in.credentials);
-               cli_credentials_set_conf(state->io_setup->in.credentials, 
-                                        global_loadparm);
+               cli_credentials_set_workstation(state->io_setup->in.credentials,
+                  cli_credentials_get_workstation(state->io->in.credentials), 
+                  CRED_SPECIFIED);
                cli_credentials_set_anonymous(state->io_setup->in.credentials);
 
                /* If the preceding attempt was with extended security, we
                cli_credentials_set_anonymous(state->io_setup->in.credentials);
 
                /* If the preceding attempt was with extended security, we