r2685: ALLOC_CHECK() after talloc_steal() isn't needed
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Sep 2004 10:14:24 +0000 (10:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:22 +0000 (12:59 -0500)
(thanks simo:-)

metze
(This used to be commit e62cd75d3786f3d638ac2a27d6e864c826eaa48f)

source4/ldap_server/ldap_simple_ldb.c

index 4fbc8f8a2264c297e1b1c73d206f990169e375c3..4526f02542095b1db5a1026613ff62ae944e29be 100644 (file)
@@ -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);
-
                        }
                }