summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-03-13 04:35:15 +0000
committerAndrew Tridgell <tridge@samba.org>2003-03-13 04:35:15 +0000
commit537e4d55651a51227fc7af4de0853165503c7b12 (patch)
tree1f1159679f7f0e55544dcdc549ece80daacce3c3 /source3
parent3b104f6e2dc56c5edcf0278e7e43d4993e7db368 (diff)
downloadsamba-537e4d55651a51227fc7af4de0853165503c7b12.tar.gz
samba-537e4d55651a51227fc7af4de0853165503c7b12.tar.bz2
samba-537e4d55651a51227fc7af4de0853165503c7b12.zip
fixed the unmarshalling of the queryaliasmem SAMR call
(This used to be commit 80c45434092a881fe2c9ae7f90856deea4722cb0)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_parse/parse_samr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c
index d031d13955..222af57e5b 100644
--- a/source3/rpc_parse/parse_samr.c
+++ b/source3/rpc_parse/parse_samr.c
@@ -4623,13 +4623,17 @@ BOOL samr_io_r_query_aliasmem(const char *desc, SAMR_R_QUERY_ALIASMEM * r_u,
for (i = 0; i < r_u->num_sids1; i++) {
ptr_sid[i] = 1;
- if(!prs_uint32("", ps, depth, &ptr_sid[i]))
+ if(!prs_uint32("ptr_sid", ps, depth, &ptr_sid[i]))
return False;
}
+ if (UNMARSHALLING(ps)) {
+ r_u->sid = talloc(ps->mem_ctx, r_u->num_sids1 * sizeof(DOM_SID));
+ }
+
for (i = 0; i < r_u->num_sids1; i++) {
if (ptr_sid[i] != 0) {
- if(!smb_io_dom_sid2("", &r_u->sid[i], ps, depth))
+ if(!smb_io_dom_sid2("sid", &r_u->sid[i], ps, depth))
return False;
}
}