s3:net_rpc_join: use pipe_hnd->desthost instead of cli->desthost
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 14:48:38 +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_join.c

index 8f1277764cb9199648e2ff67abfda0897053e833..938914b2d1bf2d8fee2f3534659a2b8d2c6a5754 100644 (file)
@@ -442,7 +442,7 @@ int net_rpc_join_newstyle(struct net_context *c, int argc, const char **argv)
        }
 
        status = rpccli_netlogon_setup_creds(pipe_hnd,
-                                       cli->desthost, /* server name */
+                                       pipe_hnd->desthost, /* server name */
                                        domain,        /* domain */
                                        lp_netbios_name(), /* client name */
                                        lp_netbios_name(), /* machine account name */