mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-06 08:13:57 +08:00
Merge pull request #4589 from oshogbo/token
Recognize only the cookie format anything else treat as token.
This commit is contained in:
commit
782039c6aa
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user