mirror of https://github.com/FreeRDP/FreeRDP
[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:
parent
81203e7e83
commit
17d195b7a6
|
@ -221,8 +221,9 @@ static BOOL rdp_read_general_capability_set(wStream* s, rdpSettings* settings)
|
||||||
{
|
{
|
||||||
WLog_WARN(TAG,
|
WLog_WARN(TAG,
|
||||||
"TS_GENERAL_CAPABILITYSET::protocolVersion(0x%04" PRIx16
|
"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);
|
||||||
|
settings->CapsProtocolVersion = TS_CAPS_PROTOCOLVERSION;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue