summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-22 16:19:00 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-22 17:06:09 +0200
commitbb0d063f01368c874774276ddb599e606c92ee49 (patch)
treeed6eda72df1c640c87c3036b5795b8ba523028a5 /source3
parent9a3e15df7ea6b3dd187490ca455d066b9d6b0ef6 (diff)
downloadsamba-bb0d063f01368c874774276ddb599e606c92ee49.tar.gz
samba-bb0d063f01368c874774276ddb599e606c92ee49.tar.bz2
samba-bb0d063f01368c874774276ddb599e606c92ee49.zip
s3:lib/netapi: make use of cli_state_remote_name()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/cm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/lib/netapi/cm.c b/source3/lib/netapi/cm.c
index d41a5caf5a..251e98c2c2 100644
--- a/source3/lib/netapi/cm.c
+++ b/source3/lib/netapi/cm.c
@@ -48,7 +48,9 @@ static struct client_ipc_connection *ipc_cm_find(
struct client_ipc_connection *p;
for (p = priv_ctx->ipc_connections; p; p = p->next) {
- if (strequal(p->cli->desthost, server_name)) {
+ const char *remote_name = cli_state_remote_name(p->cli);
+
+ if (strequal(remote_name, server_name)) {
return p;
}
}
@@ -164,12 +166,15 @@ static NTSTATUS pipe_cm_find(struct client_ipc_connection *ipc,
struct client_pipe_connection *p;
for (p = ipc->pipe_connections; p; p = p->next) {
+ const char *ipc_remote_name;
if (!rpc_pipe_np_smb_conn(p->pipe)) {
return NT_STATUS_PIPE_EMPTY;
}
- if (strequal(ipc->cli->desthost, p->pipe->desthost)
+ ipc_remote_name = cli_state_remote_name(ipc->cli);
+
+ if (strequal(ipc_remote_name, p->pipe->desthost)
&& ndr_syntax_id_equal(&p->pipe->abstract_syntax,
interface)) {
*presult = p->pipe;