s3:rpcclient: make use of cli_state_remote_name()
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 14:45:51 +0000 (16:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 15:06:09 +0000 (17:06 +0200)
metze

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;