mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
dsdb: Use talloc_get_type_abort() in schema_load_{start,end}_transaction
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13379 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
887b48c493
commit
132e932da2
@ -514,7 +514,8 @@ static int schema_load_init(struct ldb_module *module)
|
||||
static int schema_load_start_transaction(struct ldb_module *module)
|
||||
{
|
||||
struct schema_load_private_data *private_data =
|
||||
talloc_get_type(ldb_module_get_private(module), struct schema_load_private_data);
|
||||
talloc_get_type_abort(ldb_module_get_private(module),
|
||||
struct schema_load_private_data);
|
||||
struct ldb_context *ldb = ldb_module_get_ctx(module);
|
||||
struct dsdb_schema *schema;
|
||||
int ret;
|
||||
@ -547,7 +548,8 @@ static int schema_load_start_transaction(struct ldb_module *module)
|
||||
static int schema_load_end_transaction(struct ldb_module *module)
|
||||
{
|
||||
struct schema_load_private_data *private_data =
|
||||
talloc_get_type(ldb_module_get_private(module), struct schema_load_private_data);
|
||||
talloc_get_type_abort(ldb_module_get_private(module),
|
||||
struct schema_load_private_data);
|
||||
struct ldb_context *ldb = ldb_module_get_ctx(module);
|
||||
|
||||
if (private_data->in_transaction == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user