summaryrefslogtreecommitdiff
path: root/source4/libcli/ldap/ldap_controls.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-02-05 20:48:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:48 -0500
commit3721bca79dc6ff409085a2fc40cbd060d25191d4 (patch)
treee4c20147b801904d7f00a8e99d5054cb8fb80a75 /source4/libcli/ldap/ldap_controls.c
parent096c2dc10362150aed84f2251fa8ff26c3a535bb (diff)
downloadsamba-3721bca79dc6ff409085a2fc40cbd060d25191d4.tar.gz
samba-3721bca79dc6ff409085a2fc40cbd060d25191d4.tar.bz2
samba-3721bca79dc6ff409085a2fc40cbd060d25191d4.zip
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 933a80397d137f7d5b79c82a068d62bb6928ef47)
Diffstat (limited to 'source4/libcli/ldap/ldap_controls.c')
-rw-r--r--source4/libcli/ldap/ldap_controls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/ldap/ldap_controls.c b/source4/libcli/ldap/ldap_controls.c
index cb7b52d423..e02efdee2c 100644
--- a/source4/libcli/ldap/ldap_controls.c
+++ b/source4/libcli/ldap/ldap_controls.c
@@ -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;