summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-05-12 12:07:31 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-06-15 09:13:24 +0200
commit3df94e62f478e43ce95923c1c48ba0fef8909142 (patch)
treec9133ce778f95aca16c06872eda624b6984739a2 /source4/ldap_server
parent399936239c24cc71430d1187d05e8d38284bda62 (diff)
downloadsamba-3df94e62f478e43ce95923c1c48ba0fef8909142.tar.gz
s4:ldap_server: remove pointless (result != LDAP_SUCCESS) check
We set result = LDAP_SUCCESS above and have goto do_reply; in all cases where we overwrite 'result'. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_bind.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c
index 6a88891152f..7f14384f359 100644
--- a/source4/ldap_server/ldap_bind.c
+++ b/source4/ldap_server/ldap_bind.c
@@ -505,8 +505,7 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
}
}
- if (result != LDAP_SUCCESS) {
- } else if (!NT_STATUS_IS_OK(status)) {
+ if (!NT_STATUS_IS_OK(status)) {
result = LDAP_OPERATIONS_ERROR;
errstr = talloc_asprintf(reply,
"SASL:[%s]: Failed to setup SASL socket: %s",