mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
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>
This commit is contained in:
committed by
Andrew Bartlett
parent
d4cf947c08
commit
bf531dfd4e
@ -374,6 +374,8 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
|
|||||||
int result = 0;
|
int result = 0;
|
||||||
const char *errstr=NULL;
|
const char *errstr=NULL;
|
||||||
NTSTATUS status = NT_STATUS_OK;
|
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));
|
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)) {
|
if (req->creds.SASL.secblob) {
|
||||||
DATA_BLOB input = data_blob(NULL, 0);
|
input = *req->creds.SASL.secblob;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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)) {
|
if (NT_STATUS_EQUAL(NT_STATUS_MORE_PROCESSING_REQUIRED, status)) {
|
||||||
result = LDAP_SASL_BIND_IN_PROGRESS;
|
result = LDAP_SASL_BIND_IN_PROGRESS;
|
||||||
errstr = NULL;
|
errstr = NULL;
|
||||||
|
Reference in New Issue
Block a user