- sprintf(service_address, "%s:%s", host, SERVICE_NAME);
- conn = start_server_connection(service_address, "");
- if (!conn || (connection_status(conn) == CON_STOPPED)) {
- com_err(whoami, connection_errno(conn),
- " can't connect to update %s", service_address);
- return(MR_CANT_CONNECT);
- }
- code = send_auth(host);
- if (code) {
- com_err(whoami, code, " authorization attempt failed");
+ conn = mr_connect_internal(host, SERVICE_NAME);
+ if (!conn)
+ {
+ com_err(whoami, errno, ": can't connect to %s:%s", host, SERVICE_NAME);
+ exit(1);