diff options
author | Luke Leighton <lkcl@samba.org> | 2000-02-03 01:50:19 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-02-03 01:50:19 +0000 |
commit | c5104b6c67953eca1c9a493ab3311650702d8a8c (patch) | |
tree | fc2180b84ac3ef6d70c02e1de59ea82f806d6990 /source/rpc_parse/parse_sec.c | |
parent | 54c97c4cca15a55ec8934e0c6600b702160c62b8 (diff) | |
download | samba-c5104b6c67953eca1c9a493ab3311650702d8a8c.tar.gz samba-c5104b6c67953eca1c9a493ab3311650702d8a8c.tar.xz samba-c5104b6c67953eca1c9a493ab3311650702d8a8c.zip |
_finally_. lots of messing about, got samr_query_sec_obj working in samrtdbd
Diffstat (limited to 'source/rpc_parse/parse_sec.c')
-rw-r--r-- | source/rpc_parse/parse_sec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_parse/parse_sec.c b/source/rpc_parse/parse_sec.c index 1564252f115..935545781ae 100644 --- a/source/rpc_parse/parse_sec.c +++ b/source/rpc_parse/parse_sec.c @@ -524,11 +524,11 @@ BOOL sec_io_desc_buf(char *desc, SEC_DESC_BUF *sec, prs_struct *ps, int depth) prs_align(ps); - size = ps->offset - old_offset; + size = ps->offset - old_offset - 8; 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; + ps->offset = old_offset + size + 8; return True; } |