diff options
author | Volker Lendecke <vl@samba.org> | 2022-04-20 07:53:38 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-04-26 21:41:29 +0000 |
commit | 540502369633ed163b682af916e94019907024d7 (patch) | |
tree | 36c7dbc9abdb186c88d3448450ad782b705e1d7f /lib/ldb-samba | |
parent | 6bf8243cc7e49be07cc0f30b61581908df8ae7d9 (diff) | |
download | samba-540502369633ed163b682af916e94019907024d7.tar.gz |
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>
Diffstat (limited to 'lib/ldb-samba')
-rw-r--r-- | lib/ldb-samba/ldb_ildap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ldb-samba/ldb_ildap.c b/lib/ldb-samba/ldb_ildap.c index 2c32395db70..b15f38b3843 100644 --- a/lib/ldb-samba/ldb_ildap.c +++ b/lib/ldb-samba/ldb_ildap.c @@ -872,7 +872,8 @@ failed: talloc_free(module); if (NT_STATUS_IS_LDAP(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_LOGON_FAILURE) || NT_STATUS_EQUAL(status, NT_STATUS_ACCOUNT_LOCKED_OUT)) { |