From: Stefan Metzmacher Date: Fri, 12 May 2017 10:27:26 +0000 (+0200) Subject: s4:ldap_server: remove useless indentation level arround ldapsrv_backend_Init() X-Git-Tag: ldb-1.1.31~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=126fd7e45d19b591fda65fe59e0aad96d102a895;p=thirdparty%2Fsamba.git s4:ldap_server: remove useless indentation level arround ldapsrv_backend_Init() Check with git show -w Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- 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) {