mirror of
https://github.com/samba-team/samba.git
synced 2025-11-07 12:23:51 +03:00
r7720: - simplify the asn1 decode of ldap_search() a lot, taking advantage of
the fact that the ldap data structures now use ldb_message_element. - fixed null termination of elements in ildap
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
f6c2c51907
commit
09060994c1
@@ -98,6 +98,9 @@ static BOOL ldap_push_filter(struct asn1_data *data, struct ldb_parse_tree *tree
|
||||
asn1_pop_tag(data);
|
||||
break;
|
||||
|
||||
case LDB_OP_NOT:
|
||||
#warning "OP_NOT missing"
|
||||
|
||||
default:
|
||||
return False;
|
||||
}
|
||||
@@ -605,7 +608,6 @@ static void ldap_decode_attrib(TALLOC_CTX *mem_ctx, struct asn1_data *data,
|
||||
DATA_BLOB blob;
|
||||
asn1_read_OctetString(data, &blob);
|
||||
add_value_to_attrib(mem_ctx, &blob, attrib);
|
||||
data_blob_free(&blob);
|
||||
}
|
||||
asn1_end_tag(data);
|
||||
asn1_end_tag(data);
|
||||
|
||||
Reference in New Issue
Block a user