s3:rpcclient: use rpc_pipe->desthost instead of cli->desthost
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 14:45:12 +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 542862606b2273a2553b4356551af4f08d2ad6f9..8ff9742b87bc32b85c5fd93db1fbb2a2167efb89 100644 (file)
@@ -773,7 +773,7 @@ static NTSTATUS do_cmd(struct cli_state *cli,
                        }
 
                        ntresult = rpccli_netlogon_setup_creds(cmd_entry->rpc_pipe,
-                                               cli->desthost,   /* server name */
+                                               cmd_entry->rpc_pipe->desthost,   /* server name */
                                                get_cmdline_auth_info_domain(auth_info),  /* domain */
                                                lp_netbios_name(), /* client name */
                                                machine_account, /* machine account name */