mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
s3: "ctx" is not needed in idmap_nss_unixids_to_sids
This commit is contained in:
parent
a200bac093
commit
8cda1d9797
@ -43,7 +43,6 @@ static NTSTATUS idmap_nss_int_init(struct idmap_domain *dom,
|
||||
|
||||
static NTSTATUS idmap_nss_unixids_to_sids(struct idmap_domain *dom, struct id_map **ids)
|
||||
{
|
||||
TALLOC_CTX *ctx;
|
||||
int i;
|
||||
|
||||
/* initialize the status to avoid suprise */
|
||||
@ -51,12 +50,6 @@ static NTSTATUS idmap_nss_unixids_to_sids(struct idmap_domain *dom, struct id_ma
|
||||
ids[i]->status = ID_UNKNOWN;
|
||||
}
|
||||
|
||||
ctx = talloc_new(dom);
|
||||
if ( ! ctx) {
|
||||
DEBUG(0, ("Out of memory!\n"));
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
for (i = 0; ids[i]; i++) {
|
||||
struct passwd *pw;
|
||||
struct group *gr;
|
||||
@ -122,9 +115,6 @@ static NTSTATUS idmap_nss_unixids_to_sids(struct idmap_domain *dom, struct id_ma
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
talloc_free(ctx);
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user