diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-05-12 12:07:31 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-06-15 09:13:24 +0200 |
commit | 3df94e62f478e43ce95923c1c48ba0fef8909142 (patch) | |
tree | c9133ce778f95aca16c06872eda624b6984739a2 /source4 | |
parent | 399936239c24cc71430d1187d05e8d38284bda62 (diff) | |
download | samba-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')
-rw-r--r-- | source4/ldap_server/ldap_bind.c | 3 |
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", |