} else {
DEBUG(0,("net_rpc_join_ok: failed to get schannel session "
"key from server %s for domain %s. Error was %s\n",
- cli->desthost, domain, nt_errstr(ntret) ));
+ cli_state_remote_name(cli), domain, nt_errstr(ntret) ));
cli_shutdown(cli);
return ntret;
}
if (!NT_STATUS_IS_OK(ntret)) {
DEBUG(0,("net_rpc_join_ok: failed to open schannel session "
"on netlogon pipe to server %s for domain %s. Error was %s\n",
- cli->desthost, domain, nt_errstr(ntret) ));
+ cli_state_remote_name(cli), domain, nt_errstr(ntret) ));
/*
* Note: here, we have:
* (pipe_hnd != NULL) if and only if NT_STATUS_IS_OK(ntret)
}
/* double-check, connection from scratch */
- status = net_rpc_join_ok(c, domain, cli->desthost,
+ status = net_rpc_join_ok(c, domain, cli_state_remote_name(cli),
cli_state_remote_sockaddr(cli));
retval = NT_STATUS_IS_OK(status) ? 0 : -1;