summaryrefslogtreecommitdiff
path: root/source/client
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-07 02:37:04 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:48:41 +0100
commiteeb2251d22b3d6e0379444a73af69d1014692b07 (patch)
treeb0d4445e294e6a7f443b8f40ba67f6176131a5ce /source/client
parente1b7c1aee3043d1393c3374a1f460005e1dcbbfc (diff)
downloadsamba-eeb2251d22b3d6e0379444a73af69d1014692b07.tar.gz
r26327: Explicit loadparm_context for RPC client functions.
Diffstat (limited to 'source/client')
-rw-r--r--source/client/client.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 6debaac2e90..6842e2e91db 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -2545,7 +2545,7 @@ static void display_share_result(struct srvsvc_NetShareCtr1 *ctr1)
/****************************************************************************
try and browse available shares on a host
****************************************************************************/
-static bool browse_host(const char *query_host)
+static bool browse_host(struct loadparm_context *lp_ctx, const char *query_host)
{
struct dcerpc_pipe *p;
char *binding;
@@ -2559,7 +2559,8 @@ static bool browse_host(const char *query_host)
status = dcerpc_pipe_connect(mem_ctx, &p, binding,
&ndr_table_srvsvc,
- cmdline_credentials, NULL);
+ cmdline_credentials, NULL,
+ lp_ctx);
if (!NT_STATUS_IS_OK(status)) {
d_printf("Failed to connect to %s - %s\n",
binding, nt_errstr(status));
@@ -3055,9 +3056,9 @@ static struct smbclient_context *do_connect(TALLOC_CTX *mem_ctx,
/****************************************************************************
handle a -L query
****************************************************************************/
-static int do_host_query(const char *query_host, const char *workgroup)
+static int do_host_query(struct loadparm_context *lp_ctx, const char *query_host, const char *workgroup)
{
- browse_host(query_host);
+ browse_host(lp_ctx, query_host);
list_servers(workgroup);
return(0);
}
@@ -3219,7 +3220,7 @@ static int do_message_op(const char *netbios_name, const char *desthost, const c
}
if (query_host) {
- return do_host_query(query_host, lp_workgroup(global_loadparm));
+ return do_host_query(global_loadparm, query_host, lp_workgroup(global_loadparm));
}
if (message) {