Add "desthost" to rpc_pipe_client
[jra/samba/.git] / source3 / lib / netapi / cm.c
index 071ebfd4bcbda8739e9e0eab1dd36e1f418d603e..54642372479742f0d765b495c9cef4d7d304f825 100644 (file)
@@ -104,7 +104,7 @@ static struct rpc_pipe_client *pipe_cm_find(struct cli_state *cli,
                        return NULL;
                }
 
-               if (strequal(cli->desthost, p->pipe->cli->desthost) &&
+               if (strequal(cli->desthost, p->pipe->desthost) &&
                    pipe_idx == p->pipe->pipe_idx) {
                        *status = NT_STATUS_OK;
                        return p->pipe;