git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cf0443
)
s3: In copy_netr_SamInfo3 copy all of the sids array
author
Volker Lendecke
<vl@samba.org>
Fri, 25 Jun 2010 14:56:38 +0000
(16:56 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 25 Jun 2010 14:58:46 +0000
(16:58 +0200)
source3/auth/server_info.c
patch
|
blob
|
history
diff --git
a/source3/auth/server_info.c
b/source3/auth/server_info.c
index a43c4f931a88a413c0f8816440f1e16a81e53c7a..bb38080418db80a2c351e414ff211a411671e671 100644
(file)
--- 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;
}
}