From c6bf8e4cadea563011630af2fa673e3ea5e3b2ee Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 9 Jun 2010 20:21:19 +1000 Subject: s4:dsdb Put back the reference and set_attributes in dsdb_reference_schema I'm not sure why I removed these in fe3e1af901c970f738bee92baac5d7d4f5736e17 Andrew Bartlett --- source4/dsdb/schema/schema_set.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c index 07d75c44a8..c57f5f10dd 100644 --- a/source4/dsdb/schema/schema_set.c +++ b/source4/dsdb/schema/schema_set.c @@ -390,6 +390,15 @@ int dsdb_reference_schema(struct ldb_context *ldb, struct dsdb_schema *schema, return ret; } + if (talloc_reference(ldb, schema) == NULL) { + return LDB_ERR_OPERATIONS_ERROR; + } + + ret = dsdb_schema_set_attributes(ldb, schema, write_attributes); + if (ret != LDB_SUCCESS) { + return ret; + } + return LDB_SUCCESS; } -- cgit