1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ldb: Avoid an "else"

We return in the if-branch, easier to read this way.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2022-04-20 07:53:38 +02:00 committed by Jeremy Allison
parent 6bf8243cc7
commit 5405023696

View File

@ -872,7 +872,8 @@ failed:
talloc_free(module); talloc_free(module);
if (NT_STATUS_IS_LDAP(status)) { if (NT_STATUS_IS_LDAP(status)) {
return NT_STATUS_LDAP_CODE(status); return NT_STATUS_LDAP_CODE(status);
} else if (NT_STATUS_EQUAL(status, NT_STATUS_WRONG_PASSWORD) }
if (NT_STATUS_EQUAL(status, NT_STATUS_WRONG_PASSWORD)
|| NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_USER) || NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_USER)
|| NT_STATUS_EQUAL(status, NT_STATUS_LOGON_FAILURE) || NT_STATUS_EQUAL(status, NT_STATUS_LOGON_FAILURE)
|| NT_STATUS_EQUAL(status, NT_STATUS_ACCOUNT_LOCKED_OUT)) { || NT_STATUS_EQUAL(status, NT_STATUS_ACCOUNT_LOCKED_OUT)) {