diff options
-rw-r--r-- | source4/dsdb/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 1fe5979c69..126f9fa829 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1454,7 +1454,7 @@ bool samdb_is_capable_dc(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, samdb_base_dn(ldb), "nTMixedDomain", NULL); if (errmsg != NULL) - *errmsg = talloc_asprintf(mem_ctx, ""); + *errmsg = talloc_strdup(mem_ctx, ""); if (level_forest == -1 || level_domain == -1 || level_domain_mixed == -1) { ret = false; |