From bbb6adc9c48ab25d1e227f7d5fc9359b10bab737 Mon Sep 17 00:00:00 2001 From: David Fort Date: Tue, 9 Jul 2024 11:07:06 +0200 Subject: [PATCH] [core] also recognize mth:// routing token With Azure you also have some routing token of the form mth://xxxxxxx, so accept these as token. --- libfreerdp/core/nego.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libfreerdp/core/nego.c b/libfreerdp/core/nego.c index a251bdbf7..e89a3dd86 100644 --- a/libfreerdp/core/nego.c +++ b/libfreerdp/core/nego.c @@ -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;