summaryrefslogtreecommitdiff
path: root/source4/ldap_server/ldap_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ldap_server/ldap_parse.c')
-rw-r--r--source4/ldap_server/ldap_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_parse.c b/source4/ldap_server/ldap_parse.c
index d645d24104..5db65ee99c 100644
--- a/source4/ldap_server/ldap_parse.c
+++ b/source4/ldap_server/ldap_parse.c
@@ -272,7 +272,7 @@ struct ldap_dn *ldap_parse_dn(void *mem_ctx, const char *orig_dn)
}
/* rebuild the normlaized component and put it here */
- component->component = dest = talloc(component, size);
+ component->component = dest = talloc_size(component, size);
for (i = 0; i < component->attr_num; i++) {
if (i != 0) {
*dest = '+';
@@ -303,7 +303,7 @@ struct ldap_dn *ldap_parse_dn(void *mem_ctx, const char *orig_dn)
}
/* rebuild the normlaized dn and put it here */
- dn->dn = dest = talloc(dn, size);
+ dn->dn = dest = talloc_size(dn, size);
for (i = 0; i < dn->comp_num; i++) {
if (i != 0) {
*dest = ',';