Fixed version check for remote assistance channel.
This commit is contained in:
parent
484ceaed34
commit
6c02a1c7d8
@ -255,7 +255,13 @@ static UINT remdesk_recv_ctl_version_info_pdu(remdeskPlugin* remdesk,
|
||||
|
||||
Stream_Read_UINT32(s, versionMajor); /* versionMajor (4 bytes) */
|
||||
Stream_Read_UINT32(s, versionMinor); /* versionMinor (4 bytes) */
|
||||
remdesk->Version = versionMajor;
|
||||
|
||||
if ((versionMajor != 1) || (versionMinor > 2) || (versionMinor == 0))
|
||||
{
|
||||
WLog_ERR(TAG, "Unsupported protocol version %"PRId32".%"PRId32, versionMajor, versionMinor);
|
||||
}
|
||||
|
||||
remdesk->Version = versionMinor;
|
||||
return CHANNEL_RC_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user