Fix Type3 message assembly problem, part of HTTPCLIENT-1268.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424351 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Karl Wright 2012-12-20 07:14:03 +00:00
parent b6d7989aae
commit b0090c516f
1 changed files with 2 additions and 8 deletions

View File

@ -1222,7 +1222,7 @@ final class NTLMEngineImpl implements NTLMEngine {
sessionKeyLen = 0;
// Calculate the layout within the packet
int lmRespOffset = 76; // allocate space for the version
int lmRespOffset = 72; // allocate space for the version
int ntRespOffset = lmRespOffset + lmRespLen;
int domainOffset = ntRespOffset + ntRespLen;
int userOffset = domainOffset + domainLen;
@ -1273,13 +1273,7 @@ final class NTLMEngineImpl implements NTLMEngine {
addUShort(sessionKeyLen);
// Session key offset
if (sessionKeyLen != 0)
addULong(sessionKeyOffset);
else
addULong(0);
// Message length
addULong(finalLength);
// Flags. Currently: WORKSTATION_PRESENT + DOMAIN_PRESENT + UNICODE_ENCODING +
// TARGET_DESIRED + NEGOTIATE_128