diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-05-12 12:27:26 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-06-15 09:13:24 +0200 |
commit | 126fd7e45d19b591fda65fe59e0aad96d102a895 (patch) | |
tree | e8142c7bf1b3b77874cc5e4e19e246a29355789e /source4/ldap_server | |
parent | eaa8acf6e3488618c6e4f76576b19230037d364f (diff) | |
download | samba-126fd7e45d19b591fda65fe59e0aad96d102a895.tar.gz |
s4:ldap_server: remove useless indentation level arround ldapsrv_backend_Init()
Check with git show -w
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.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c index c33eaac9c0e..51440cb51ee 100644 --- a/source4/ldap_server/ldap_bind.c +++ b/source4/ldap_server/ldap_bind.c @@ -519,25 +519,25 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call) "SASL:[%s]: Failed to get session info: %s", req->creds.SASL.mechanism, nt_errstr(status)); goto do_reply; - } else { - talloc_unlink(conn, conn->session_info); - conn->session_info = talloc_steal(conn, session_info); + } - /* don't leak the old LDB */ - talloc_unlink(conn, conn->ldb); + talloc_unlink(conn, conn->session_info); + conn->session_info = talloc_steal(conn, session_info); - call->conn->authz_logged = true; + /* don't leak the old LDB */ + talloc_unlink(conn, conn->ldb); - status = ldapsrv_backend_Init(conn); + call->conn->authz_logged = true; - if (!NT_STATUS_IS_OK(status)) { - result = LDAP_OPERATIONS_ERROR; - errstr = talloc_asprintf(reply, - "SASL:[%s]: Failed to advise samdb of new credentials: %s", - req->creds.SASL.mechanism, - nt_errstr(status)); - goto do_reply; - } + status = ldapsrv_backend_Init(conn); + + if (!NT_STATUS_IS_OK(status)) { + result = LDAP_OPERATIONS_ERROR; + errstr = talloc_asprintf(reply, + "SASL:[%s]: Failed to advise samdb of new credentials: %s", + req->creds.SASL.mechanism, + nt_errstr(status)); + goto do_reply; } if (NT_STATUS_IS_OK(status) && context) { |