mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
Map a useless error code to a useful one...
(This used to be commit 1afb2695a0
)
This commit is contained in:
parent
de8a78e722
commit
75c1bf29a8
@ -175,6 +175,11 @@ static NTSTATUS connect_to_domain_password_server(struct cli_state **cli,
|
||||
&dest_ip, 0, "IPC$", "IPC", "", "", "",0, retry);
|
||||
|
||||
if (!NT_STATUS_IS_OK(result)) {
|
||||
/* map to something more useful */
|
||||
if (NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL)) {
|
||||
result = NT_STATUS_NO_LOGON_SERVERS;
|
||||
}
|
||||
|
||||
release_server_mutex();
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user