svn commit: samba r2685 - in branches/SAMBA_4_0/source/ldap_server:
.
metze at samba.org
metze at samba.org
Mon Sep 27 10:14:24 GMT 2004
Author: metze
Date: 2004-09-27 10:14:24 +0000 (Mon, 27 Sep 2004)
New Revision: 2685
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/ldap_server&rev=2685&nolog=1
Log:
ALLOC_CHECK() after talloc_steal() isn't needed
(thanks simo:-)
metze
Modified:
branches/SAMBA_4_0/source/ldap_server/ldap_simple_ldb.c
Changeset:
Modified: branches/SAMBA_4_0/source/ldap_server/ldap_simple_ldb.c
===================================================================
--- branches/SAMBA_4_0/source/ldap_server/ldap_simple_ldb.c 2004-09-27 10:13:41 UTC (rev 2684)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_simple_ldb.c 2004-09-27 10:14:24 UTC (rev 2685)
@@ -82,13 +82,11 @@
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 @@
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);
-
}
}
More information about the samba-cvs
mailing list