summaryrefslogtreecommitdiffstats
path: root/source/lsaparse.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-13 18:11:20 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-13 18:11:20 +0000
commit717bcd6e3457f355583b4508d1f4edc9a52650df (patch)
treef83341d7d863ca8abf40583d73d3ad5052be0e41 /source/lsaparse.c
parent14f0c2ddb05a690e671efad8c47da9ff1e39c8ce (diff)
downloadsamba-717bcd6e3457f355583b4508d1f4edc9a52650df.tar.gz
samba-717bcd6e3457f355583b4508d1f4edc9a52650df.tar.xz
samba-717bcd6e3457f355583b4508d1f4edc9a52650df.zip
lsa_io_r_req_chal() - challenge is not 4-byte aligned after the unicode
strings.
Diffstat (limited to 'source/lsaparse.c')
-rw-r--r--source/lsaparse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/lsaparse.c b/source/lsaparse.c
index 69352466f6b..3c18f5b71d5 100644
--- a/source/lsaparse.c
+++ b/source/lsaparse.c
@@ -247,7 +247,9 @@ char* lsa_io_q_req_chal(BOOL io, LSA_Q_REQ_CHAL *q_c, char *q, char *base, int a
q = smb_io_unistr2(io, &(q_c->uni_logon_srv), q, base, align, depth); /* logon server unicode string */
q = smb_io_unistr2(io, &(q_c->uni_logon_clnt), q, base, align, depth); /* logon client unicode string */
- q = smb_io_chal(io, &(q_c->clnt_chal), q, base, align, depth); /* client challenge */
+
+ /* client challenge is _not_ aligned after the unicode strings */
+ q = smb_io_chal(io, &(q_c->clnt_chal), q, base, 0, depth); /* client challenge */
return q;
}