Merge pull request #4589 from oshogbo/token

Recognize only the cookie format anything else treat as token.
This commit is contained in:
David Fort 2018-04-26 11:59:15 +02:00 committed by GitHub
commit 782039c6aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -677,10 +677,9 @@ static BOOL nego_read_request_token_or_cookie(rdpNego* nego, wStream* s)
if (Stream_GetRemainingLength(s) < 15)
return TRUE;
if (!memcmp(Stream_Pointer(s), "Cookie: msts=", 13))
if (memcmp(Stream_Pointer(s), "Cookie: mstshash=", 17) != 0)
{
isToken = TRUE;
Stream_Seek(s, 13);
}
else
{
@ -688,9 +687,6 @@ static BOOL nego_read_request_token_or_cookie(rdpNego* nego, wStream* s)
if (Stream_GetRemainingLength(s) < 19)
return TRUE;
if (memcmp(Stream_Pointer(s), "Cookie: mstshash=", 17))
return TRUE;
Stream_Seek(s, 17);
}