1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-14 20:23:54 +03:00

r13354: Add tests to check that controls work properly

Fix asq module, add a second_stage_init to register with rootdse
Fix asq control ldap parsing routines (this was nasty to find out)
(This used to be commit 933a80397d)
This commit is contained in:
Simo Sorce
2006-02-05 20:48:27 +00:00
committed by Gerald (Jerry) Carter
parent 096c2dc103
commit 3721bca79d
3 changed files with 56 additions and 7 deletions

View File

@@ -304,7 +304,7 @@ static BOOL decode_asq_control(void *mem_ctx, DATA_BLOB in, void **out)
}
lac->src_attr_len = source_attribute.length;
if (lac->src_attr_len) {
lac->source_attribute = talloc_memdup(lac, source_attribute.data, source_attribute.length);
lac->source_attribute = talloc_strndup(lac, source_attribute.data, source_attribute.length);
if (!(lac->source_attribute)) {
return False;