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