- dom = idmap_find_domain_with_sid(d->name.string, d->sid);
- if (dom == NULL) {
- DEBUG(10, ("idmap domain %s:%s not found\n",
- d->name.string, sid_string_dbg(d->sid)));
-
- for (i=0; i<num_ids; i++) {
-
- ids[i].xid = (struct unixid) {
- .id = UINT32_MAX,
- .type = ID_TYPE_NOT_SPECIFIED
- };
- }
-
- return NT_STATUS_OK;
- }
-
- id_map_ptrs = id_map_ptrs_init(talloc_tos(), num_ids);
- if (id_map_ptrs == NULL) {
- goto nomem;
+ maps = id_map_ptrs_init(talloc_tos(), num_ids);
+ if (maps == NULL) {
+ return NT_STATUS_NO_MEMORY;