summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-09-27 10:14:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:22 -0500
commitc8a7c5b95ef33ea4695f9b0bb50afaa547119337 (patch)
treea8f690e729dae5e660882f063164ffe159a83796 /source4/ldap_server
parent073e9af19bb1d913aa0704c142ee6b56e05030e3 (diff)
downloadsamba-c8a7c5b95ef33ea4695f9b0bb50afaa547119337.tar.gz
samba-c8a7c5b95ef33ea4695f9b0bb50afaa547119337.tar.bz2
samba-c8a7c5b95ef33ea4695f9b0bb50afaa547119337.zip
r2685: ALLOC_CHECK() after talloc_steal() isn't needed
(thanks simo:-) metze (This used to be commit e62cd75d3786f3d638ac2a27d6e864c826eaa48f)
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_simple_ldb.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source4/ldap_server/ldap_simple_ldb.c b/source4/ldap_server/ldap_simple_ldb.c
index 4fbc8f8a22..4526f02542 100644
--- a/source4/ldap_server/ldap_simple_ldb.c
+++ b/source4/ldap_server/ldap_simple_ldb.c
@@ -82,13 +82,11 @@ static NTSTATUS sldb_Search(struct ldapsrv_partition *partition, struct ldapsrv_
ent = &ent_r->msg.r.SearchResultEntry;
ent->dn = talloc_steal(ent_r, res[i]->dn);
- ALLOC_CHECK(ent->dn, call);
ent->num_attributes = res[i]->num_elements;
ent->attributes = talloc_array_p(ent_r, struct ldap_attribute, ent->num_attributes);
ALLOC_CHECK(ent->attributes, call);
for (j=0; j < ent->num_attributes; j++) {
ent->attributes[j].name = talloc_steal(ent->attributes, res[i]->elements[j].name);
- ALLOC_CHECK(ent->attributes[j].name, call);
if (r->attributesonly) {
ent->attributes[j].num_values = 0;
ent->attributes[j].values = NULL;
@@ -102,8 +100,6 @@ static NTSTATUS sldb_Search(struct ldapsrv_partition *partition, struct ldapsrv_
ent->attributes[j].values[y].length = res[i]->elements[j].values[y].length;
ent->attributes[j].values[y].data = talloc_steal(ent->attributes[j].values,
res[i]->elements[j].values[y].data);
- ALLOC_CHECK(ent->attributes[j].values[y].data, call);
-
}
}