Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
struct id_map **ids)
{
struct autorid_global_config *globalcfg;
- TALLOC_CTX *ctx;
NTSTATUS ret;
int i;
globalcfg = talloc_get_type(dom->private_data,
struct autorid_global_config);
- ctx = talloc_new(dom);
- if (!ctx) {
- DEBUG(0, ("Out of memory!\n"));
- return NT_STATUS_NO_MEMORY;
- }
-
for (i = 0; ids[i]; i++) {
ret = idmap_autorid_id_to_sid(globalcfg, ids[i]);
goto failure;
}
}
-
- talloc_free(ctx);
return NT_STATUS_OK;
failure:
- talloc_free(ctx);
return ret;
-
}
/**********************************