mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
fixes bug 228062 "NTLM authentication fails with mod_ntlm, mod_ntlm reports 'missing/corrupt NTLM header'" r+sr=bryner a=dbaron
This commit is contained in:
parent
6bf7a8743d
commit
cbcce6aa7e
@ -442,10 +442,10 @@ GenerateType1Msg(void **outBuf, PRUint32 *outLen)
|
||||
//
|
||||
|
||||
// 16 : supplied domain security buffer (empty)
|
||||
cursor = WriteSecBuf(cursor, 0, NTLM_TYPE1_HEADER_LEN);
|
||||
cursor = WriteSecBuf(cursor, 0, 0);
|
||||
|
||||
// 24 : supplied workstation security buffer (empty)
|
||||
cursor = WriteSecBuf(cursor, 0, NTLM_TYPE1_HEADER_LEN);
|
||||
cursor = WriteSecBuf(cursor, 0, 0);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
@ -685,8 +685,7 @@ GenerateType3Msg(const nsString &domain,
|
||||
memcpy((PRUint8 *) *outBuf + offset, hostPtr, hostLen);
|
||||
|
||||
// 52 : session key sec buf (not used)
|
||||
offset += (hostLen + LM_RESP_LEN + NTLM_RESP_LEN);
|
||||
cursor = WriteSecBuf(cursor, 0, offset);
|
||||
cursor = WriteSecBuf(cursor, 0, 0);
|
||||
|
||||
// 60 : negotiated flags
|
||||
cursor = WriteDWORD(cursor, msg.flags & NTLM_TYPE1_FLAGS);
|
||||
|
Loading…
Reference in New Issue
Block a user