From efc2c3159ebc8c42bbb78fd07e4c21b6e74e45ba Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jul 2011 16:44:02 +0200 Subject: s3:cli_pipe: make use of cli_state_remote_name() metze --- source3/rpc_client/cli_pipe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') 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: -- cgit