diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-22 16:44:02 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-22 17:06:09 +0200 |
commit | efc2c3159ebc8c42bbb78fd07e4c21b6e74e45ba (patch) | |
tree | bb622186b28bac1f57b85971b390c5c24e93f4be /source3 | |
parent | ef23fb3412d167fd69e4512639fb2b783bd08185 (diff) | |
download | samba-efc2c3159ebc8c42bbb78fd07e4c21b6e74e45ba.tar.gz samba-efc2c3159ebc8c42bbb78fd07e4c21b6e74e45ba.tar.bz2 samba-efc2c3159ebc8c42bbb78fd07e4c21b6e74e45ba.zip |
s3:cli_pipe: make use of cli_state_remote_name()
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 710b94b5d1..d71a106019 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -33,7 +33,7 @@ #include "librpc/crypto/spnego.h" #include "rpc_dce.h" #include "cli_pipe.h" -#include "client.h" +#include "libsmb/libsmb.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_RPC_CLI @@ -2763,7 +2763,7 @@ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli, result->abstract_syntax = *abstract_syntax; result->transfer_syntax = ndr_transfer_syntax; - result->desthost = talloc_strdup(result, cli->desthost); + result->desthost = talloc_strdup(result, cli_state_remote_name(cli)); result->srv_name_slash = talloc_asprintf_strupper_m( result, "\\\\%s", result->desthost); @@ -2816,8 +2816,8 @@ static NTSTATUS cli_rpc_pipe_open(struct cli_state *cli, { switch (transport) { case NCACN_IP_TCP: - return rpc_pipe_open_tcp(NULL, cli->desthost, interface, - presult); + return rpc_pipe_open_tcp(NULL, cli_state_remote_name(cli), + interface, presult); case NCACN_NP: return rpc_pipe_open_np(cli, interface, presult); default: |