diff options
-rw-r--r-- | source4/lib/ldb/common/ldb_dn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index 5895432431..4c1e9a9d07 100644 --- a/source4/lib/ldb/common/ldb_dn.c +++ b/source4/lib/ldb/common/ldb_dn.c @@ -857,10 +857,11 @@ static char *ldb_dn_canonical(void *mem_ctx, const struct ldb_dn *dn, int ex_for break; } if (cracked) { - cracked = talloc_asprintf(mem_ctx, "%s.%s", dn->components[i].value.data, + cracked = talloc_asprintf(mem_ctx, "%s.%s", + (const char *)dn->components[i].value.data, cracked); } else { - cracked = talloc_strdup(mem_ctx, dn->components[i].value.data); + cracked = talloc_strdup(mem_ctx, (const char *)dn->components[i].value.data); } if (!cracked) { return NULL; |