1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

libsmb: Avoid an "else", we return in the "true" branch.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2024-08-05 17:22:02 +02:00
parent 18d506f521
commit bdabd9fff7

View File

@ -250,9 +250,11 @@ NTSTATUS remote_password_change(const char *remote_machine,
/* Great - it all worked! */
cli_shutdown(cli);
return NT_STATUS_OK;
}
} else if (!(NT_STATUS_EQUAL(result, NT_STATUS_ACCESS_DENIED)
|| NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL))) {
if (!(NT_STATUS_EQUAL(result, NT_STATUS_ACCESS_DENIED) ||
NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL)))
{
/* it failed, but for reasons such as wrong password, too short etc ... */
if (asprintf(err_str, "machine %s rejected the password change: "