From 4f6f4ea93c83fa5154f450e2e43649467e4c2b32 Mon Sep 17 00:00:00 2001 From: Luk Claes Date: Sat, 19 May 2012 17:31:50 +0200 Subject: s3:libsmb: get rid of cli_state_remote_name Signed-off-by: Luk Claes Signed-off-by: Stefan Metzmacher --- source3/rpc_client/cli_pipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/rpc_client/cli_pipe.c') diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 5f5f99201d..6b052f95ed 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -35,6 +35,7 @@ #include "libsmb/libsmb.h" #include "auth/gensec/gensec.h" #include "auth/credentials/credentials.h" +#include "../libcli/smb/smbXcli_base.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_RPC_CLI @@ -2608,7 +2609,7 @@ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli, result->abstract_syntax = *abstract_syntax; result->transfer_syntax = ndr_transfer_syntax_ndr; - result->desthost = talloc_strdup(result, cli_state_remote_name(cli)); + result->desthost = talloc_strdup(result, smbXcli_conn_remote_name(cli->conn)); result->srv_name_slash = talloc_asprintf_strupper_m( result, "\\\\%s", result->desthost); @@ -2661,7 +2662,7 @@ static NTSTATUS cli_rpc_pipe_open(struct cli_state *cli, { switch (transport) { case NCACN_IP_TCP: - return rpc_pipe_open_tcp(NULL, cli_state_remote_name(cli), + return rpc_pipe_open_tcp(NULL, smbXcli_conn_remote_name(cli->conn), interface, presult); case NCACN_NP: return rpc_pipe_open_np(cli, interface, presult); -- cgit