diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-03-14 10:36:07 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2004-03-14 10:36:07 +0000 |
commit | 916d7852a57f9ef2f3c3b7e9a3dee0abce180737 (patch) | |
tree | 81fb020dfe28a82502e86f3a60d4ec84319a60d6 /source3/groupdb/mapping.c | |
parent | 6cd06f816d8b5c77f7691ecae4aa2ea84b305cc0 (diff) | |
download | samba-916d7852a57f9ef2f3c3b7e9a3dee0abce180737.tar.gz samba-916d7852a57f9ef2f3c3b7e9a3dee0abce180737.tar.bz2 samba-916d7852a57f9ef2f3c3b7e9a3dee0abce180737.zip |
Clean up a bit :-)
Volker
(This used to be commit 66c4a6dee88274c2e1493224b0ba694418b32796)
Diffstat (limited to 'source3/groupdb/mapping.c')
-rw-r--r-- | source3/groupdb/mapping.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index cbf022f377..319d39c99f 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -531,6 +531,19 @@ static NTSTATUS add_aliasmem(const DOM_SID *alias, const DOM_SID *member) return (result == 0 ? NT_STATUS_OK : NT_STATUS_ACCESS_DENIED); } +static void add_sid_to_array(const DOM_SID *sid, DOM_SID **sids, int *num) +{ + *sids = Realloc(*sids, ((*num)+1) * sizeof(DOM_SID)); + + if (*sids == NULL) + return; + + sid_copy(&((*sids)[*num]), sid); + *num += 1; + + return; +} + static NTSTATUS enum_aliasmem(const DOM_SID *alias, DOM_SID **sids, int *num) { GROUP_MAP map; |