summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-05-11 19:13:49 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-06-15 09:13:23 +0200
commitbf531dfd4e2cd97a8f57030ea597c75a3d3336ac (patch)
tree71257612536547ea0bec110e34b1438c6d6371d9 /source4/ldap_server
parentd4cf947c08e64f9a5f71fced0e75ca101c367ef8 (diff)
downloadsamba-bf531dfd4e2cd97a8f57030ea597c75a3d3336ac.tar.gz
s4:ldap_server: remove an useless indentation level from gensec_update_ev()
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.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c
index 4913629cfcc..fb4593de95f 100644
--- a/source4/ldap_server/ldap_bind.c
+++ b/source4/ldap_server/ldap_bind.c
@@ -374,6 +374,8 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
int result = 0;
const char *errstr=NULL;
NTSTATUS status = NT_STATUS_OK;
+ DATA_BLOB input = data_blob_null;
+ DATA_BLOB output = data_blob_null;
DEBUG(10, ("BindSASL dn: %s\n",req->dn));
@@ -410,20 +412,14 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
}
}
- if (NT_STATUS_IS_OK(status)) {
- DATA_BLOB input = data_blob(NULL, 0);
- DATA_BLOB output = data_blob(NULL, 0);
-
- if (req->creds.SASL.secblob) {
- input = *req->creds.SASL.secblob;
- }
-
- status = gensec_update_ev(conn->gensec, reply, conn->connection->event.ctx,
- input, &output);
-
- *resp->SASL.secblob = output;
+ if (req->creds.SASL.secblob) {
+ input = *req->creds.SASL.secblob;
}
+ status = gensec_update_ev(conn->gensec, reply, conn->connection->event.ctx,
+ input, &output);
+ *resp->SASL.secblob = output;
+
if (NT_STATUS_EQUAL(NT_STATUS_MORE_PROCESSING_REQUIRED, status)) {
result = LDAP_SASL_BIND_IN_PROGRESS;
errstr = NULL;