1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

ldap_server: Move a variable into a smaller scope

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
Garming Sam
2017-03-24 12:20:19 +13:00
committed by Andrew Bartlett
parent 49eb47588f
commit 81f874974e

View File

@ -1228,7 +1228,6 @@ NTSTATUS ldapsrv_do_call(struct ldapsrv_call *call)
unsigned int i;
struct ldap_message *msg = call->request;
NTSTATUS status;
bool log = true;
/* Check for undecoded critical extensions */
for (i=0; msg->controls && msg->controls[i]; i++) {
@ -1241,6 +1240,7 @@ NTSTATUS ldapsrv_do_call(struct ldapsrv_call *call)
}
if (call->conn->authz_logged == false) {
bool log = true;
/*
* We do not want to log anonymous access if the query