From: Jo Sutton Date: Mon, 12 Feb 2024 03:48:36 +0000 (+1300) Subject: s4:ldap_server: Remove trailing whitespace X-Git-Tag: tdb-1.4.11~1701 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c970eaa2ed5bae4501df6ebfc3af67a946a0c76;p=thirdparty%2Fsamba.git s4:ldap_server: Remove trailing whitespace Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/ldap_server/ldap_backend.c b/source4/ldap_server/ldap_backend.c index 1a906534a0a..663ab91a7e1 100644 --- a/source4/ldap_server/ldap_backend.c +++ b/source4/ldap_server/ldap_backend.c @@ -1,19 +1,19 @@ -/* +/* Unix SMB/CIFS implementation. LDAP server Copyright (C) Stefan Metzmacher 2004 Copyright (C) Matthias Dieter Wallnöfer 2009 - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -1109,7 +1109,7 @@ static NTSTATUS ldapsrv_ModifyRequest(struct ldapsrv_call *call) for (j=0; j < msg->elements[i].num_values; j++) { msg->elements[i].values[j].length = req->mods[i].attrib.values[j].length; - msg->elements[i].values[j].data = req->mods[i].attrib.values[j].data; + msg->elements[i].values[j].data = req->mods[i].attrib.values[j].data; } } } @@ -1188,7 +1188,7 @@ static NTSTATUS ldapsrv_AddRequest(struct ldapsrv_call *call) msg->elements[i].flags = 0; msg->elements[i].num_values = 0; msg->elements[i].values = NULL; - + if (req->attributes[i].num_values > 0) { msg->elements[i].num_values = req->attributes[i].num_values; msg->elements[i].values = talloc_array(msg->elements, struct ldb_val, @@ -1197,7 +1197,7 @@ static NTSTATUS ldapsrv_AddRequest(struct ldapsrv_call *call) for (j=0; j < msg->elements[i].num_values; j++) { msg->elements[i].values[j].length = req->attributes[i].values[j].length; - msg->elements[i].values[j].data = req->attributes[i].values[j].data; + msg->elements[i].values[j].data = req->attributes[i].values[j].data; } } } @@ -1415,7 +1415,7 @@ static NTSTATUS ldapsrv_CompareRequest(struct ldapsrv_call *call) NT_STATUS_HAVE_NO_MEMORY(dn); DBG_DEBUG("dn: [%s]\n", req->dn); - filter = talloc_asprintf(local_ctx, "(%s=%*s)", req->attribute, + filter = talloc_asprintf(local_ctx, "(%s=%*s)", req->attribute, (int)req->value.length, req->value.data); NT_STATUS_HAVE_NO_MEMORY(filter); @@ -1528,7 +1528,7 @@ NTSTATUS ldapsrv_do_call(struct ldapsrv_call *call) /* Check for undecoded critical extensions */ for (i=0; msg->controls && msg->controls[i]; i++) { - if (!msg->controls_decoded[i] && + if (!msg->controls_decoded[i] && msg->controls[i]->critical) { DBG_NOTICE("Critical extension %s is not known to this server\n", msg->controls[i]->oid);