From 16deb7267809101261122b956a791aa3466d83d8 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sat, 7 Dec 2013 17:52:54 -0800 Subject: [PATCH] chansrv: support drdynvc v3 along with v2 --- sesman/chansrv/drdynvc.c | 8 +++++--- 1 file 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;