[channels,rdpei] add log message for unknown protocol versions

This commit is contained in:
akallabeth
2025-03-04 09:50:49 +01:00
parent 1d68f50103
commit e5c1e9a320

View File

@@ -785,15 +785,13 @@ static UINT rdpei_recv_sc_ready_pdu(GENERIC_CHANNEL_CALLBACK* callback, wStream*
if (rdpei->version > protocolVersion)
rdpei->version = protocolVersion;
rdpei->features = features;
#if 0
if (protocolVersion != RDPINPUT_PROTOCOL_V10)
if (protocolVersion > RDPINPUT_PROTOCOL_V300)
{
WLog_Print(rdpei->base.log, WLOG_ERROR, "Unknown [MS-RDPEI] protocolVersion: 0x%08"PRIX32"", protocolVersion);
return -1;
WLog_Print(rdpei->base.log, WLOG_WARN,
"Unknown [MS-RDPEI] protocolVersion: 0x%08" PRIX32 "", protocolVersion);
}
#endif
return CHANNEL_RC_OK;
}