diff options
author | Michael Adam <obnox@samba.org> | 2010-06-22 12:30:58 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-08-14 02:10:54 +0200 |
commit | 597292a819450866a28e8a46091a0287db9631c1 (patch) | |
tree | 465bf5d4360fda2ba0bc19b6dbcf2c38da1fbb22 | |
parent | 62833871bc5e2efe203d8f0a1efaf7c9fa62ff94 (diff) | |
download | samba-597292a819450866a28e8a46091a0287db9631c1.tar.gz samba-597292a819450866a28e8a46091a0287db9631c1.tar.bz2 samba-597292a819450866a28e8a46091a0287db9631c1.zip |
s3:idmap_rid: remove unused talloc context var from idmap_rid_unixids_to_sids()
-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 7cbd4650f3..5b7073c1d1 100644 --- a/source3/winbindd/idmap_rid.c +++ b/source3/winbindd/idmap_rid.c @@ -168,7 +168,6 @@ static NTSTATUS idmap_rid_sid_to_id(TALLOC_CTX *memctx, struct idmap_rid_context static NTSTATUS idmap_rid_unixids_to_sids(struct idmap_domain *dom, struct id_map **ids) { struct idmap_rid_context *ridctx; - TALLOC_CTX *ctx; NTSTATUS ret; int i; @@ -179,12 +178,6 @@ static NTSTATUS idmap_rid_unixids_to_sids(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_id_to_sid(ridctx, ids[i]); @@ -196,7 +189,6 @@ static NTSTATUS idmap_rid_unixids_to_sids(struct idmap_domain *dom, struct id_ma } } - talloc_free(ctx); return NT_STATUS_OK; } |