summaryrefslogtreecommitdiff
path: root/source3
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
commit8c3fedf612862f53794a7d8256c6026e6509f1bb (patch)
tree714d66e4d298486a1803f1f34096947b1aa44900 /source3
parentc87abfc5651fa906f5b64a5814ab6f5d5c0b25a5 (diff)
downloadsamba-8c3fedf612862f53794a7d8256c6026e6509f1bb.tar.gz
samba-8c3fedf612862f53794a7d8256c6026e6509f1bb.tar.bz2
samba-8c3fedf612862f53794a7d8256c6026e6509f1bb.zip
lsa_io_r_req_chal() - challenge is not 4-byte aligned after the unicode
strings. (This used to be commit 717bcd6e3457f355583b4508d1f4edc9a52650df)
Diffstat (limited to 'source3')
-rw-r--r--source3/lsaparse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lsaparse.c b/source3/lsaparse.c
index 69352466f6..3c18f5b71d 100644
--- a/source3/lsaparse.c
+++ b/source3/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;
}