s3:net_rpc: make use of cli_state_remote_name()
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 14:48:02 +0000 (16:48 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 15:06:10 +0000 (17:06 +0200)
metze

source3/utils/net_rpc.c

index d6a8868b2aa3c44078edaecf1b340573762ba5a5..1ec34c210caa7a7bf85f1c55c62929673d27dfd8 100644 (file)
@@ -351,7 +351,7 @@ static NTSTATUS rpc_oldjoin_internals(struct net_context *c,
        if (!NT_STATUS_IS_OK(result)) {
                DEBUG(0,("rpc_oldjoin_internals: netlogon pipe open to machine %s failed. "
                        "error was %s\n",
-                       cli->desthost,
+                       cli_state_remote_name(cli),
                        nt_errstr(result) ));
                return result;
        }
@@ -3977,7 +3977,7 @@ static NTSTATUS rpc_share_migrate_files_internals(struct net_context *c,
                /* open share source */
                nt_status = connect_to_service(c, &cp_clistate.cli_share_src,
                                               cli_state_remote_sockaddr(cli),
-                                              cli->desthost,
+                                              cli_state_remote_name(cli),
                                               info502.name, "A:");
                if (!NT_STATUS_IS_OK(nt_status))
                        goto done;