diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-07 02:37:04 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:48:41 +0100 |
commit | 4c4323009fa83f00ed319de59a3aad48fcd65994 (patch) | |
tree | 4eb290c8e7881e1b9b9f77f8401531443aa81bf4 /source4/client | |
parent | 485b24fc113fe64507e20b9079948832d63194a3 (diff) | |
download | samba-4c4323009fa83f00ed319de59a3aad48fcd65994.tar.gz samba-4c4323009fa83f00ed319de59a3aad48fcd65994.tar.bz2 samba-4c4323009fa83f00ed319de59a3aad48fcd65994.zip |
r26327: Explicit loadparm_context for RPC client functions.
(This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
Diffstat (limited to 'source4/client')
-rw-r--r-- | source4/client/client.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/client/client.c b/source4/client/client.c index 6debaac2e9..6842e2e91d 100644 --- a/source4/client/client.c +++ b/source4/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) { |