projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
484ceae
)
Fixed version check for remote assistance channel.
author
Armin Novak
<armin.novak@thincast.com>
Mon, 12 Nov 2018 09:33:46 +0000
(10:33 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Thu, 22 Nov 2018 10:11:31 +0000
(11:11 +0100)
channels/remdesk/client/remdesk_main.c
patch
|
blob
|
history
diff --git
a/channels/remdesk/client/remdesk_main.c
b/channels/remdesk/client/remdesk_main.c
index
9252929
..
9bcfc35
100644
(file)
--- a/
channels/remdesk/client/remdesk_main.c
+++ b/
channels/remdesk/client/remdesk_main.c
@@
-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;
}