diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-06-17 02:45:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:18:19 -0500 |
commit | ab1e121b76a953f89592df8ec471603715b57dfc (patch) | |
tree | 427a34a97db4c7b58e9131da14f29b82f0082507 /source4/libcli/ldap/ldap_msg.c | |
parent | 2068037ba910a323ddd2aa7261dfe757e3f9821f (diff) | |
download | samba-ab1e121b76a953f89592df8ec471603715b57dfc.tar.gz samba-ab1e121b76a953f89592df8ec471603715b57dfc.tar.bz2 samba-ab1e121b76a953f89592df8ec471603715b57dfc.zip |
r7665: - added a ildap_*() interface to our internal ldap library. This
interface is very similar to the traditional ldap interface, and will
be used as part of a ldb backend based on the current ldb_ldap backend
- fixed some allocation issues in ldb_msg.c
(This used to be commit b34a29dcf26f68a2f47380a6c74a4095fdfd2fbe)
Diffstat (limited to 'source4/libcli/ldap/ldap_msg.c')
-rw-r--r-- | source4/libcli/ldap/ldap_msg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/libcli/ldap/ldap_msg.c b/source4/libcli/ldap/ldap_msg.c index 5ac44a5226..901c42a62a 100644 --- a/source4/libcli/ldap/ldap_msg.c +++ b/source4/libcli/ldap/ldap_msg.c @@ -44,7 +44,7 @@ BOOL add_value_to_attrib(TALLOC_CTX *mem_ctx, struct ldb_val *value, return False; attrib->values[attrib->num_values] = - data_blob_talloc(mem_ctx, value->data, value->length); + data_blob_talloc(attrib->values, value->data, value->length); attrib->num_values += 1; return True; } @@ -63,6 +63,8 @@ BOOL add_attrib_to_array_talloc(TALLOC_CTX *mem_ctx, return False; (*attribs)[*num_attribs] = *attrib; + talloc_steal(*attribs, attrib->values); + talloc_steal(*attribs, attrib->name); *num_attribs += 1; return True; } |