summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse/parse_samr.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-01 18:44:33 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-01 18:44:33 +0000
commit39c367b8e9932f64fa774b807e14416f97254312 (patch)
tree3fdca17cb83cd23585846fca1c02fa5dafc6218a /source/rpc_parse/parse_samr.c
parentcbc646b1d8ce73d1d8167887cbfdab3cad4f11a4 (diff)
downloadsamba-39c367b8e9932f64fa774b807e14416f97254312.tar.gz
samba-39c367b8e9932f64fa774b807e14416f97254312.tar.xz
samba-39c367b8e9932f64fa774b807e14416f97254312.zip
splitting dom info into sam_query_dominfo function
Diffstat (limited to 'source/rpc_parse/parse_samr.c')
-rw-r--r--source/rpc_parse/parse_samr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/rpc_parse/parse_samr.c b/source/rpc_parse/parse_samr.c
index ccc9cdc183c..e5c015a6b3f 100644
--- a/source/rpc_parse/parse_samr.c
+++ b/source/rpc_parse/parse_samr.c
@@ -543,11 +543,12 @@ void samr_io_r_query_dom_info(char *desc, SAMR_R_QUERY_DOMAIN_INFO *r_u, prs_str
prs_align(ps);
prs_uint32("ptr_0 ", ps, depth, &(r_u->ptr_0));
- prs_uint16("switch_value", ps, depth, &(r_u->switch_value));
- prs_align(ps);
if (r_u->ptr_0 != 0 && r_u->ctr != NULL)
{
+ prs_uint16("switch_value", ps, depth, &(r_u->switch_value));
+ prs_align(ps);
+
switch (r_u->switch_value)
{
case 0x07: