[core] also recognize mth:// routing token

With Azure you also have some routing token of the form mth://xxxxxxx, so accept
these as token.
This commit is contained in:
David Fort 2024-07-09 11:07:06 +02:00
parent 8fc12f9653
commit bbb6adc9c4

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;