summaryrefslogtreecommitdiff
path: root/source3/passdb
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/passdb
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/passdb')
-rw-r--r--source3/passdb/util_sam_sid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/util_sam_sid.c b/source3/passdb/util_sam_sid.c
index db88ea7aea..1d1e74cd6f 100644
--- a/source3/passdb/util_sam_sid.c
+++ b/source3/passdb/util_sam_sid.c
@@ -306,14 +306,14 @@ BOOL map_name_to_wellknown_sid(DOM_SID *sid, enum SID_NAME_USE *use, const char
return False;
}
-void add_sid_to_array(DOM_SID sid, DOM_SID **sids, int *num)
+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);
+ sid_copy(&((*sids)[*num]), sid);
*num += 1;
return;