diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-08 21:48:44 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-18 15:46:37 +0100 |
commit | 6e9fb079583fb2781987ee40eda47a956a5c4e82 (patch) | |
tree | 55b7f7c09cef9f0fec1c778bb6a7ead610c61f71 /source3/winbindd | |
parent | 10953c60bdf247d030b088c155346a5af470567a (diff) | |
download | samba-6e9fb079583fb2781987ee40eda47a956a5c4e82.tar.gz samba-6e9fb079583fb2781987ee40eda47a956a5c4e82.tar.bz2 samba-6e9fb079583fb2781987ee40eda47a956a5c4e82.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.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index e814d0da1f..437c03800d 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -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; - } /********************************** |