Skip to content

Commit

Permalink
Merge pull request #3122 from matt335672/v0_10_fix_server_24bpp_gfx
Browse files Browse the repository at this point in the history
[v0.10] Don't use GFX if server max_bpp is <32
  • Loading branch information
matt335672 authored Jun 19, 2024
2 parents 0aa3a67 + 90ca82f commit 9a21e37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libxrdp/xrdp_sec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9a21e37

Please sign in to comment.