1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

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
This commit is contained in:
Andrew Bartlett 2010-06-09 20:21:19 +10:00
parent 7aa8af144e
commit c6bf8e4cad

View File

@ -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;
}