summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_samr.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-06-10 21:49:18 +0000
committerJeremy Allison <jra@samba.org>2002-06-10 21:49:18 +0000
commitde581b91e90702802ecb873d550f8a5228ef41f2 (patch)
treef102fdca26a6bfc1bdb1e594bcf8480df500c283 /source3/rpc_parse/parse_samr.c
parent959ff024daf61b86ec1d487582dd663ab95d24d1 (diff)
downloadsamba-de581b91e90702802ecb873d550f8a5228ef41f2.tar.gz
samba-de581b91e90702802ecb873d550f8a5228ef41f2.tar.bz2
samba-de581b91e90702802ecb873d550f8a5228ef41f2.zip
Merge of Jerry's fix from 2.2.
Jeremy. (This used to be commit 64af68924b8fc36caac3f978dc0f9deccc41e059)
Diffstat (limited to 'source3/rpc_parse/parse_samr.c')
-rw-r--r--source3/rpc_parse/parse_samr.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c
index 412dcd6501..8a741d768d 100644
--- a/source3/rpc_parse/parse_samr.c
+++ b/source3/rpc_parse/parse_samr.c
@@ -6719,13 +6719,16 @@ BOOL samr_io_r_get_dom_pwinfo(char *desc, SAMR_R_GET_DOM_PWINFO * r_u,
if(!prs_align(ps))
return False;
- if(!prs_uint16("unk_0", ps, depth, &r_u->unk_0))
- return False;
- if(!prs_uint16("unk_1", ps, depth, &r_u->unk_1))
+ /*
+ * We need 16 bytes here according to tests. Don't know
+ * what they are, but the length is important for the singing
+ */
+
+ if(!prs_uint32("unk_0", ps, depth, &r_u->unk_0))
return False;
- if(!prs_uint16("unk_2", ps, depth, &r_u->unk_2))
+ if(!prs_uint32("unk_1", ps, depth, &r_u->unk_1))
return False;
- if(!prs_align(ps))
+ if(!prs_uint32("unk_2", ps, depth, &r_u->unk_2))
return False;
if(!prs_ntstatus("status", ps, depth, &r_u->status))