summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-01-03 21:31:22 +1100
committerStefan Metzmacher <metze@samba.org>2013-01-10 14:52:49 +0100
commit5812eb3c1deac51891f01338b4771b1e397dc24d (patch)
tree95fea94b2d46a3f6da207f095a3b93ad90174f49 /source4/dsdb
parent99d872ee9261a299add4718c38234dfe9f7658fc (diff)
downloadsamba-5812eb3c1deac51891f01338b4771b1e397dc24d.tar.gz
samba-5812eb3c1deac51891f01338b4771b1e397dc24d.tar.bz2
samba-5812eb3c1deac51891f01338b4771b1e397dc24d.zip
dsdb-acl: give error string if we can not obtain the schema
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/acl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/acl.c b/source4/dsdb/samdb/ldb_modules/acl.c
index 9bf261225e..2de16b7e98 100644
--- a/source4/dsdb/samdb/ldb_modules/acl.c
+++ b/source4/dsdb/samdb/ldb_modules/acl.c
@@ -1021,8 +1021,9 @@ static int acl_modify(struct ldb_module *module, struct ldb_request *req)
schema = dsdb_get_schema(ldb, tmp_ctx);
if (!schema) {
- ret = LDB_ERR_OPERATIONS_ERROR;
- goto fail;
+ talloc_free(tmp_ctx);
+ return ldb_error(ldb, LDB_ERR_OPERATIONS_ERROR,
+ "acl_modify: Error obtaining schema.");
}
ret = dsdb_get_sd_from_ldb_message(ldb, tmp_ctx, acl_res->msgs[0], &sd);