summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-06-25 16:56:38 +0200
committerVolker Lendecke <vl@samba.org>2010-06-25 16:58:46 +0200
commit17cd3d06cb00db9a94375e00aa42832e25c05726 (patch)
treefd27181e8dd6a1de70049d061fb16984aa8e21aa /source3/auth
parent7cf04431594e09043b3b53144fc8511d20b088ee (diff)
downloadsamba-17cd3d06cb00db9a94375e00aa42832e25c05726.tar.gz
samba-17cd3d06cb00db9a94375e00aa42832e25c05726.tar.bz2
samba-17cd3d06cb00db9a94375e00aa42832e25c05726.zip
s3: In copy_netr_SamInfo3 copy all of the sids array
Diffstat (limited to 'source3/auth')
-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;
}
}