Add "desthost" to rpc_pipe_client
[kai/samba.git] / source3 / utils / smbtree.c
index 48eae5ac5cc6254e24ed1b8cb6306ee39b6d3c72..d2dd1b49d32ac6d192d4a043c8c31bb4e85479ee 100644 (file)
@@ -179,7 +179,7 @@ static bool get_rpc_shares(struct cli_state *cli,
        info_ctr.ctr.ctr1 = &ctr1;
 
        status = rpccli_srvsvc_NetShareEnumAll(pipe_hnd, mem_ctx,
-                                              pipe_hnd->cli->desthost,
+                                              pipe_hnd->desthost,
                                               &info_ctr,
                                               0xffffffff,
                                               &total_entries,