summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse/parse_sec.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-02-03 00:58:59 +0000
committerLuke Leighton <lkcl@samba.org>2000-02-03 00:58:59 +0000
commit54c97c4cca15a55ec8934e0c6600b702160c62b8 (patch)
tree86729ec7892c24dfa9939b862ad6d7f383af3059 /source/rpc_parse/parse_sec.c
parentb2cc4af0998fc6d02bdf9c58afa9c401c8adc915 (diff)
downloadsamba-54c97c4cca15a55ec8934e0c6600b702160c62b8.tar.gz
samba-54c97c4cca15a55ec8934e0c6600b702160c62b8.tar.xz
samba-54c97c4cca15a55ec8934e0c6600b702160c62b8.zip
in an attempt to create samrtdbd, i noticed comments that sam op code 0x3
is actually a query security object call. *dur*! explains why that code was such a mess :) added rpcclient samquerysec command to help write a proper opcode 0x3 response (first the client, now the server :)
Diffstat (limited to 'source/rpc_parse/parse_sec.c')
-rw-r--r--source/rpc_parse/parse_sec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/rpc_parse/parse_sec.c b/source/rpc_parse/parse_sec.c
index ef7300925ab..1564252f115 100644
--- a/source/rpc_parse/parse_sec.c
+++ b/source/rpc_parse/parse_sec.c
@@ -305,6 +305,7 @@ static BOOL sec_io_desc(char *desc, SEC_DESC *t, prs_struct *ps, int depth)
/* start of security descriptor stored for back-calc offset purposes */
old_offset = ps->offset;
+ max_offset = old_offset;
prs_uint16("revision ", ps, depth, &(t->revision ));
prs_uint16("type ", ps, depth, &(t->type ));
@@ -527,6 +528,8 @@ BOOL sec_io_desc_buf(char *desc, SEC_DESC_BUF *sec, prs_struct *ps, int depth)
prs_uint32_post("max_len", ps, depth, &(sec->max_len), off_max_len, size == 0 ? sec->max_len : size + 8);
prs_uint32_post("len ", ps, depth, &(sec->len ), off_len , size == 0 ? 0 : size + 8);
+ ps->offset = old_offset + sec->max_len;
+
return True;
}