From 8c3fedf612862f53794a7d8256c6026e6509f1bb Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Mon, 13 Oct 1997 18:11:20 +0000 Subject: lsa_io_r_req_chal() - challenge is not 4-byte aligned after the unicode strings. (This used to be commit 717bcd6e3457f355583b4508d1f4edc9a52650df) --- source3/lsaparse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3') 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; } -- cgit