summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-08 21:38:21 +0100
committerVolker Lendecke <vl@samba.org>2011-03-18 15:46:36 +0100
commit6ab0d8b9981e9e2ab07993069139ec8f9fca9696 (patch)
treeaec57c30f327670dedbba02eaa97ac44e252130e /source3/winbindd
parentd1970a8da9aef3e379bba38bf7d8820cce0d1e6a (diff)
downloadsamba-6ab0d8b9981e9e2ab07993069139ec8f9fca9696.tar.gz
samba-6ab0d8b9981e9e2ab07993069139ec8f9fca9696.tar.bz2
samba-6ab0d8b9981e9e2ab07993069139ec8f9fca9696.zip
idmap-autorid: Remove an unused variable
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_autorid.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c
index 786bdfc5f1..9fd7f15095 100644
--- a/source3/winbindd/idmap_autorid.c
+++ b/source3/winbindd/idmap_autorid.c
@@ -271,17 +271,9 @@ static NTSTATUS idmap_autorid_sids_to_unixids(struct idmap_domain *dom,
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;
@@ -339,12 +331,9 @@ static NTSTATUS idmap_autorid_sids_to_unixids(struct idmap_domain *dom,
goto failure;
}
}
-
- talloc_free(ctx);
return NT_STATUS_OK;
failure:
- talloc_free(ctx);
return ret;
}