diff options
-rw-r--r-- | source3/utils/net_rpc_join.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_join.c b/source3/utils/net_rpc_join.c index f84ab1caab..8f1277764c 100644 --- a/source3/utils/net_rpc_join.c +++ b/source3/utils/net_rpc_join.c @@ -512,7 +512,8 @@ int net_rpc_join_newstyle(struct net_context *c, int argc, const char **argv) } /* double-check, connection from scratch */ - status = net_rpc_join_ok(c, domain, cli->desthost, &cli->dest_ss); + status = net_rpc_join_ok(c, domain, cli->desthost, + cli_state_remote_sockaddr(cli)); retval = NT_STATUS_IS_OK(status) ? 0 : -1; done: |