diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-06-09 20:21:19 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-06-12 11:16:49 +1000 |
commit | c6bf8e4cadea563011630af2fa673e3ea5e3b2ee (patch) | |
tree | dd977f9d896b882d5f719601bdf744a0424b1db4 /source4/dsdb/schema | |
parent | 7aa8af144efc6d57f33b90ac856096aa7089468d (diff) | |
download | samba-c6bf8e4cadea563011630af2fa673e3ea5e3b2ee.tar.gz samba-c6bf8e4cadea563011630af2fa673e3ea5e3b2ee.tar.bz2 samba-c6bf8e4cadea563011630af2fa673e3ea5e3b2ee.zip |
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
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r-- | source4/dsdb/schema/schema_set.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; } |