summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
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;