mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
idmap-autorid: Remove an unused variable
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
This commit is contained in:
parent
10953c60bd
commit
6e9fb07958
@ -225,7 +225,6 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom,
|
||||
struct id_map **ids)
|
||||
{
|
||||
struct autorid_global_config *globalcfg;
|
||||
TALLOC_CTX *ctx;
|
||||
NTSTATUS ret;
|
||||
int i;
|
||||
|
||||
@ -237,12 +236,6 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom,
|
||||
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]);
|
||||
@ -255,14 +248,10 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom,
|
||||
goto failure;
|
||||
}
|
||||
}
|
||||
|
||||
talloc_free(ctx);
|
||||
return NT_STATUS_OK;
|
||||
|
||||
failure:
|
||||
talloc_free(ctx);
|
||||
return ret;
|
||||
|
||||
}
|
||||
|
||||
/**********************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user