s3:net_rpc: use netr->desthost instead of cli->desthost
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 14:47:35 +0000 (16:47 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 15:06:10 +0000 (17:06 +0200)
metze

source3/utils/net_rpc.c

index 746b2f7bb8918cf22b38e6bd80e14d625541199d..d6a8868b2aa3c44078edaecf1b340573762ba5a5 100644 (file)
@@ -6147,7 +6147,7 @@ static NTSTATUS rpc_trustdom_get_pdc(struct net_context *c,
        b = netr->binding_handle;
 
        status = dcerpc_netr_GetDcName(b, mem_ctx,
-                                      cli->desthost,
+                                      netr->desthost,
                                       domain_name,
                                       &buffer,
                                       &result);