summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-03-10 16:17:46 +0000
committerVolker Lendecke <vlendec@samba.org>2004-03-10 16:17:46 +0000
commitfaab4f3c27d994add8691817c2ec965e459fce96 (patch)
tree6beeaf76a3d70968be54fdb73bb2c10e696604c4 /source3/groupdb
parentc3d851fc7437cda798ca38faaad0e448097b46bc (diff)
downloadsamba-faab4f3c27d994add8691817c2ec965e459fce96.tar.gz
samba-faab4f3c27d994add8691817c2ec965e459fce96.tar.bz2
samba-faab4f3c27d994add8691817c2ec965e459fce96.zip
Don't pass DOM_SIDs around when pointers are enough.
Volker (This used to be commit 27b27c28cd0421be3121e7f03c237df381c7ecb3)
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index bd387ee319..48bdfe2cd2 100644
--- a/source3/groupdb/mapping.c
+++ b/source3/groupdb/mapping.c
@@ -575,7 +575,7 @@ static NTSTATUS enum_aliasmem(const DOM_SID *alias, DOM_SID **sids, int *num)
if (!string_to_sid(&sid, string_sid))
continue;
- add_sid_to_array(sid, sids, num);
+ add_sid_to_array(&sid, sids, num);
if (sids == NULL)
return NT_STATUS_NO_MEMORY;
@@ -694,7 +694,7 @@ static NTSTATUS alias_memberships(const DOM_SID *sid, DOM_SID **sids, int *num)
if (is_foreign_alias_member(sid, &maps[i].sid)) {
- add_sid_to_array(maps[i].sid, sids, num);
+ add_sid_to_array(&maps[i].sid, sids, num);
if (sids == NULL) {
SAFE_FREE(maps);
@@ -710,7 +710,7 @@ static NTSTATUS alias_memberships(const DOM_SID *sid, DOM_SID **sids, int *num)
for (i=0; i<num_maps; i++) {
if (is_foreign_alias_member(sid, &maps[i].sid)) {
- add_sid_to_array(maps[i].sid, sids, num);
+ add_sid_to_array(&maps[i].sid, sids, num);
if (sids == NULL) {
SAFE_FREE(maps);
@@ -1046,7 +1046,7 @@ BOOL get_sid_list_of_group(gid_t gid, DOM_SID **sids, int *num_sids)
NT_STATUS_IS_OK(enum_aliasmem(&sid, &members, &num_members)) ) {
for (i=0; i<num_members; i++) {
- add_sid_to_array(members[i], sids, num_sids);
+ add_sid_to_array(&members[i], sids, num_sids);
if (sids == NULL)
return False;