From: Andrew Bartlett Date: Tue, 10 Apr 2018 01:34:56 +0000 (+1200) Subject: dsdb: Use talloc_get_type_abort() in schema_load_{start,end}_transaction X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=132e932da2f203d005abea4412fcf2c483b7c489 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 Reviewed-by: Douglas Bagnall --- diff --git a/source4/dsdb/samdb/ldb_modules/schema_load.c b/source4/dsdb/samdb/ldb_modules/schema_load.c index e977e8b0ad5e..7cbbeb699ee2 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_load.c +++ b/source4/dsdb/samdb/ldb_modules/schema_load.c @@ -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) {