From 17cd3d06cb00db9a94375e00aa42832e25c05726 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 25 Jun 2010 16:56:38 +0200 Subject: s3: In copy_netr_SamInfo3 copy all of the sids array --- source3/auth/server_info.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3') 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; } } -- cgit