summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dsdb/samdb/ldb_modules/partition.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c
index 21eb9a74d7..4c0c632139 100644
--- a/source4/dsdb/samdb/ldb_modules/partition.c
+++ b/source4/dsdb/samdb/ldb_modules/partition.c
@@ -722,11 +722,10 @@ static const char *relative_path(struct ldb_module *module,
}
if ( (p = strrchr(path, '/')) != NULL) {
p[0] = '\0';
+ full_name = talloc_asprintf(mem_ctx, "%s/%s", path, name);
} else {
- talloc_free(path);
- return NULL;
+ full_name = talloc_asprintf(mem_ctx, "./%s", name);
}
- full_name = talloc_asprintf(mem_ctx, "%s/%s", path, name);
talloc_free(path);
return full_name;
}