1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-08 16:23:49 +03:00

r7598: take advantage of struct data_blob and struct ldb_val being the same

structure in a couple of places
This commit is contained in:
Andrew Tridgell
2005-06-15 01:12:31 +00:00
committed by Gerald (Jerry) Carter
parent 35ec292f86
commit bcd4671aca
2 changed files with 3 additions and 14 deletions

View File

@@ -603,11 +603,8 @@ static void ldap_decode_attrib(TALLOC_CTX *mem_ctx, struct asn1_data *data,
asn1_start_tag(data, ASN1_SET);
while (asn1_peek_tag(data, ASN1_OCTET_STRING)) {
DATA_BLOB blob;
struct ldb_val value;
asn1_read_OctetString(data, &blob);
value.data = blob.data;
value.length = blob.length;
add_value_to_attrib(mem_ctx, &value, attrib);
add_value_to_attrib(mem_ctx, &blob, attrib);
data_blob_free(&blob);
}
asn1_end_tag(data);