[core,aad] set FREERDP_ERROR_CONNECT_ACCESS_DENIED

If not authentication token can be fetched set this error to indicate
why the connection failed.
This commit is contained in:
akallabeth
2025-09-15 14:07:33 +02:00
parent b384d4bc05
commit 86e5ff550f

View File

@@ -836,6 +836,9 @@ static BOOL freerdp_common_context(rdpContext* context, AccessTokenType tokenTyp
}
va_end(ap);
if (!rc)
freerdp_set_last_error_if_not(context, FREERDP_ERROR_CONNECT_ACCESS_DENIED);
return rc;
}