diff options
author | Volker Lendecke <vl@samba.org> | 2008-04-19 21:56:43 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-04-20 00:13:09 +0200 |
commit | 2a2188591b5ed922d09dc723adcf10f8b8f5e5a0 (patch) | |
tree | aa3b8b649ba54fc0bff9898355e861c225b33b49 /source3/libsmb | |
parent | b46d340fd5d7e88684ac77000e17c1899ff608b2 (diff) | |
download | samba-2a2188591b5ed922d09dc723adcf10f8b8f5e5a0.tar.gz samba-2a2188591b5ed922d09dc723adcf10f8b8f5e5a0.tar.bz2 samba-2a2188591b5ed922d09dc723adcf10f8b8f5e5a0.zip |
Add "desthost" to rpc_pipe_client
This reduces the dependency on cli_state
(This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clientgen.c | 4 | ||||
-rw-r--r-- | source3/libsmb/libsmb_dir.c | 2 | ||||
-rw-r--r-- | source3/libsmb/trusts_util.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 860cb948ac..ef2c2639cd 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -638,7 +638,7 @@ bool cli_rpc_pipe_close(struct rpc_pipe_client *cli) "to machine %s. Error was %s\n", cli->pipe_name, (int) cli->fnum, - cli->cli->desthost, + cli->desthost, cli_errstr(cli->cli))); } @@ -647,7 +647,7 @@ bool cli_rpc_pipe_close(struct rpc_pipe_client *cli) } DEBUG(10,("cli_rpc_pipe_close: closed pipe %s to machine %s\n", - cli->pipe_name, cli->cli->desthost )); + cli->pipe_name, cli->desthost )); DLIST_REMOVE(cli->cli->pipe_list, cli); talloc_destroy(cli); diff --git a/source3/libsmb/libsmb_dir.c b/source3/libsmb/libsmb_dir.c index f836989004..612a8772c0 100644 --- a/source3/libsmb/libsmb_dir.c +++ b/source3/libsmb/libsmb_dir.c @@ -287,7 +287,7 @@ net_share_enum_rpc(struct cli_state *cli, /* Issue the NetShareEnum RPC call and retrieve the response */ nt_status = rpccli_srvsvc_NetShareEnumAll(pipe_hnd, talloc_tos(), - pipe_hnd->cli->desthost, + pipe_hnd->desthost, &info_ctr, preferred_len, &total_entries, diff --git a/source3/libsmb/trusts_util.c b/source3/libsmb/trusts_util.c index c3f5f2538a..20ac0143fd 100644 --- a/source3/libsmb/trusts_util.c +++ b/source3/libsmb/trusts_util.c @@ -43,7 +43,7 @@ static NTSTATUS just_change_the_password(struct rpc_pipe_client *cli, TALLOC_CTX uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS; result = rpccli_netlogon_setup_creds(cli, - cli->cli->desthost, /* server name */ + cli->desthost, /* server name */ lp_workgroup(), /* domain */ global_myname(), /* client name */ global_myname(), /* machine account name */ |