Merge pull request #3121 from matt335672/fix_server_24bpp_gfx

Don't use GFX if server max_bpp is <32
This commit is contained in:
matt335672 2024-06-19 09:00:05 +01:00 committed by GitHub
commit c92334720c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -2146,6 +2146,12 @@ xrdp_sec_process_mcs_data_CS_CORE(struct xrdp_sec *self, struct stream *s)
LOG(LOG_LEVEL_WARNING,
"client requested gfx protocol with insufficient color depth");
}
else if (client_info->max_bpp > 0 && client_info->max_bpp < 32)
{
LOG(LOG_LEVEL_WARNING, "Client requested gfx protocol "
"but the server configuration is limited to %d bpp.",
client_info->max_bpp);
}
else
{
LOG(LOG_LEVEL_INFO, "client supports gfx protocol");