s3:rpcclient: make use of cli_state_remote_name()
[ira/wip.git] / source3 / rpcclient / rpcclient.c
index 8ff9742b87bc32b85c5fd93db1fbb2a2167efb89..1c0c21f5747285e09a43422a22061402f47aece3 100644 (file)
@@ -706,7 +706,7 @@ static NTSTATUS do_cmd(struct cli_state *cli,
                                                cli, cmd_entry->interface,
                                                default_transport,
                                                pipe_default_auth_level,
-                                               cli->desthost,
+                                               cli_state_remote_name(cli),
                                                NULL, NULL,
                                                &cmd_entry->rpc_pipe);
                                break;
@@ -737,7 +737,7 @@ static NTSTATUS do_cmd(struct cli_state *cli,
                                cli, cmd_entry->interface,
                                default_transport,
                                pipe_default_auth_level,
-                               cli->desthost,
+                               cli_state_remote_name(cli),
                                NULL, NULL,
                                &cmd_entry->rpc_pipe);
                        break;