summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/server_info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c
index a43c4f931a..bb38080418 100644
--- a/source3/auth/server_info.c
+++ b/source3/auth/server_info.c
@@ -551,6 +551,7 @@ struct netr_SamInfo3 *copy_netr_SamInfo3(TALLOC_CTX *mem_ctx,
}
if (orig->sidcount) {
+ info3->sidcount = orig->sidcount;
info3->sids = talloc_array(info3, struct netr_SidAttr,
orig->sidcount);
RET_NOMEM(info3->sids);
@@ -558,6 +559,8 @@ struct netr_SamInfo3 *copy_netr_SamInfo3(TALLOC_CTX *mem_ctx,
info3->sids[i].sid = sid_dup_talloc(info3->sids,
orig->sids[i].sid);
RET_NOMEM(info3->sids[i].sid);
+ info3->sids[i].attributes =
+ orig->sids[i].attributes;
}
}