diff options
author | Michael Adam <obnox@samba.org> | 2010-06-22 12:32:35 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-08-14 02:10:55 +0200 |
commit | a6f58b76cccc95f2ac69f5e215fd3a0c9d639c9e (patch) | |
tree | 0445d854eacc9402170014c30c51e13b59c3e55a /source3 | |
parent | 376e2bcc6e6f8c8b032d83116dc742c5975f042e (diff) | |
download | samba-a6f58b76cccc95f2ac69f5e215fd3a0c9d639c9e.tar.gz samba-a6f58b76cccc95f2ac69f5e215fd3a0c9d639c9e.tar.bz2 samba-a6f58b76cccc95f2ac69f5e215fd3a0c9d639c9e.zip |
s3:idmap_rid: remove unused talloc context var from idmap_rid_sids_to_unixids()
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/idmap_rid.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/winbindd/idmap_rid.c b/source3/winbindd/idmap_rid.c index f2b0609f50..6d57ace498 100644 --- a/source3/winbindd/idmap_rid.c +++ b/source3/winbindd/idmap_rid.c @@ -199,7 +199,6 @@ static NTSTATUS idmap_rid_unixids_to_sids(struct idmap_domain *dom, struct id_ma static NTSTATUS idmap_rid_sids_to_unixids(struct idmap_domain *dom, struct id_map **ids) { struct idmap_rid_context *ridctx; - TALLOC_CTX *ctx; NTSTATUS ret; int i; @@ -210,12 +209,6 @@ static NTSTATUS idmap_rid_sids_to_unixids(struct idmap_domain *dom, struct id_ma ridctx = talloc_get_type(dom->private_data, struct idmap_rid_context); - 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_rid_sid_to_id(ridctx, ids[i]); @@ -228,7 +221,6 @@ static NTSTATUS idmap_rid_sids_to_unixids(struct idmap_domain *dom, struct id_ma } } - talloc_free(ctx); return NT_STATUS_OK; } |