diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-08 19:43:01 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-08 21:14:10 +0200 |
commit | a51e6ce43cbc576a1352b0eccdab2f5c7f1bc2c2 (patch) | |
tree | 5a0c92a72764d1724d2ee23c94df7271c8e54598 /source3/groupdb/mapping_ldb.c | |
parent | 5ea88420da78589b3d52addcd8cce119968f0f73 (diff) | |
download | samba-a51e6ce43cbc576a1352b0eccdab2f5c7f1bc2c2.tar.gz |
Pass a talloc_ctx to pdb_enum_aliasmem
Diffstat (limited to 'source3/groupdb/mapping_ldb.c')
-rw-r--r-- | source3/groupdb/mapping_ldb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/groupdb/mapping_ldb.c b/source3/groupdb/mapping_ldb.c index cc06282aeea..89966e1986e 100644 --- a/source3/groupdb/mapping_ldb.c +++ b/source3/groupdb/mapping_ldb.c @@ -488,7 +488,8 @@ static NTSTATUS del_aliasmem(const DOM_SID *alias, const DOM_SID *member) /* enumerate sids that have the given alias set in member */ -static NTSTATUS enum_aliasmem(const DOM_SID *alias, DOM_SID **sids, size_t *num) +static NTSTATUS enum_aliasmem(const DOM_SID *alias, TALLOC_CTX *mem_ctx, + DOM_SID **sids, size_t *num) { const char *attrs[] = { "member", @@ -529,7 +530,7 @@ static NTSTATUS enum_aliasmem(const DOM_SID *alias, DOM_SID **sids, size_t *num) for (i=0;i<el->num_values;i++) { DOM_SID sid; string_to_sid(&sid, (const char *)el->values[i].data); - status = add_sid_to_array_unique(NULL, &sid, sids, num); + status = add_sid_to_array_unique(mem_ctx, &sid, sids, num); if (!NT_STATUS_IS_OK(status)) { goto done; } |