[core,capabilities] fix CapsProtocolVersion

if the wrong version 0x0000 is sent (older FreeRDP based servers)
correct the value to TS_CAPS_PROTOCOLVERSION (0x0200) along with a
warning message.
This commit is contained in:
akallabeth 2024-07-06 12:46:49 +02:00
parent 81203e7e83
commit 17d195b7a6
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -221,8 +221,9 @@ static BOOL rdp_read_general_capability_set(wStream* s, rdpSettings* settings)
{
WLog_WARN(TAG,
"TS_GENERAL_CAPABILITYSET::protocolVersion(0x%04" PRIx16
" assuming old FreeRDP, ignoring protocol violation.",
" assuming old FreeRDP, ignoring protocol violation, correcting value.",
settings->CapsProtocolVersion);
settings->CapsProtocolVersion = TS_CAPS_PROTOCOLVERSION;
}
else
return FALSE;