Merge pull request #10366 from hardening/mth_token

[core] also recognize mth:// routing token
This commit is contained in:
akallabeth
2024-07-10 08:14:26 +02:00
committed by GitHub

View File

@@ -904,8 +904,11 @@ static BOOL nego_read_request_token_or_cookie(rdpNego* nego, wStream* s)
{
if (memcmp(Stream_ConstPointer(s), "tsv:", 4) != 0)
{
/* remaining bytes are neither a token nor a cookie */
return TRUE;
if (memcmp(Stream_ConstPointer(s), "mth://", 6) != 0)
{
/* remaining bytes are neither a token nor a cookie */
return TRUE;
}
}
}
isToken = TRUE;