summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-22 16:49:28 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-22 17:06:10 +0200
commit419eb293f7cbc89651fb13de5745bf51778fb7b5 (patch)
tree6417d4b0c0037f17e2319728fedfc2987ce94fcc
parent7ca20eadf45f13048413da144df3ab9860ede7a6 (diff)
downloadsamba-419eb293f7cbc89651fb13de5745bf51778fb7b5.tar.gz
samba-419eb293f7cbc89651fb13de5745bf51778fb7b5.tar.bz2
samba-419eb293f7cbc89651fb13de5745bf51778fb7b5.zip
s3:net_rpc_join: make use of cli_state_remote_name()
metze
-rw-r--r--source3/utils/net_rpc_join.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_join.c b/source3/utils/net_rpc_join.c
index 938914b2d1..73ea3e0398 100644
--- a/source3/utils/net_rpc_join.c
+++ b/source3/utils/net_rpc_join.c
@@ -122,7 +122,7 @@ NTSTATUS net_rpc_join_ok(struct net_context *c, const char *domain,
} else {
DEBUG(0,("net_rpc_join_ok: failed to get schannel session "
"key from server %s for domain %s. Error was %s\n",
- cli->desthost, domain, nt_errstr(ntret) ));
+ cli_state_remote_name(cli), domain, nt_errstr(ntret) ));
cli_shutdown(cli);
return ntret;
}
@@ -143,7 +143,7 @@ NTSTATUS net_rpc_join_ok(struct net_context *c, const char *domain,
if (!NT_STATUS_IS_OK(ntret)) {
DEBUG(0,("net_rpc_join_ok: failed to open schannel session "
"on netlogon pipe to server %s for domain %s. Error was %s\n",
- cli->desthost, domain, nt_errstr(ntret) ));
+ cli_state_remote_name(cli), domain, nt_errstr(ntret) ));
/*
* Note: here, we have:
* (pipe_hnd != NULL) if and only if NT_STATUS_IS_OK(ntret)
@@ -512,7 +512,7 @@ int net_rpc_join_newstyle(struct net_context *c, int argc, const char **argv)
}
/* double-check, connection from scratch */
- status = net_rpc_join_ok(c, domain, cli->desthost,
+ status = net_rpc_join_ok(c, domain, cli_state_remote_name(cli),
cli_state_remote_sockaddr(cli));
retval = NT_STATUS_IS_OK(status) ? 0 : -1;