diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2013-12-07 17:52:54 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2013-12-07 17:52:54 -0800 |
commit | 16deb7267809101261122b956a791aa3466d83d8 (patch) | |
tree | dd46aa0ab8fbb371a019bd6618fe5ee92cf7ecd4 /sesman | |
parent | 36c56087961fc5b775bc030f76decbeb1b377503 (diff) | |
download | xrdp-proprietary-16deb7267809101261122b956a791aa3466d83d8.tar.gz xrdp-proprietary-16deb7267809101261122b956a791aa3466d83d8.zip |
chansrv: support drdynvc v3 along with v2
Diffstat (limited to 'sesman')
-rw-r--r-- | sesman/chansrv/drdynvc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sesman/chansrv/drdynvc.c b/sesman/chansrv/drdynvc.c index eaad17cc..70b08d97 100644 --- a/sesman/chansrv/drdynvc.c +++ b/sesman/chansrv/drdynvc.c @@ -99,13 +99,15 @@ drdynvc_process_capability_response(struct stream *s, unsigned char cmd) /* read client's version */ in_uint16_le(s, cap_version); - if (cap_version != 2) + if ((cap_version != 2) && (cap_version != 3)) { - LOG(0, ("drdynvc_process_capability_response: incompatible DVC version %d detected", cap_version)); + LOG(0, ("drdynvc_process_capability_response: incompatible DVC " + "version %d detected", cap_version)); return -1; } - LOG(0, ("drdynvc_process_capability_response: DVC version 2 selected")); + LOG(0, ("drdynvc_process_capability_response: DVC version %d selected", + cap_version)); g_drdynvc_inited = 1; return 0; |