1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-05 04:23:51 +03:00

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 commit is contained in:
Andrew Tridgell
2005-06-17 02:45:40 +00:00
committed by Gerald (Jerry) Carter
parent ffe1b5e6f4
commit b34a29dcf2
5 changed files with 241 additions and 2 deletions

View File

@@ -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;
}