summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-19 02:05:19 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-19 02:05:19 +0000
commite1820455c24de024a2ff7418bd2d14ad943563fa (patch)
treeac07d1bc1a2dc8adc95aa057147f150c839617e4 /source3/rpc_parse
parent3365a2fd234966ecfcd06d2295cbd085c7bbd8c6 (diff)
downloadsamba-e1820455c24de024a2ff7418bd2d14ad943563fa.tar.gz
samba-e1820455c24de024a2ff7418bd2d14ad943563fa.tar.bz2
samba-e1820455c24de024a2ff7418bd2d14ad943563fa.zip
nt5rc2 falling over because the LsaQueryInfoPolicy() response _must_
have the string max length = string length + 1. if not, then it gets its knickers in a twist over whether the string is NULL-terminated or not. four days. four days i spent on this one. (This used to be commit 9795e5948c698115e34c28993cdb82ba31377f5d)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_lsa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c
index 57c22e88cb..596b1cb045 100644
--- a/source3/rpc_parse/parse_lsa.c
+++ b/source3/rpc_parse/parse_lsa.c
@@ -105,6 +105,7 @@ static BOOL lsa_io_dom_r_ref(char *desc, DOM_R_REF *r_r, prs_struct *ps, int de
{
slprintf(t, sizeof(t) - 1, "dom_ref[%d] ", i);
smb_io_unistr2(t, &(r_r->ref_dom[n].uni_dom_name), True, ps, depth); /* domain name unicode string */
+ prs_align(ps);
n++;
}