chansrv: support drdynvc v3 along with v2

This commit is contained in:
Jay Sorg 2013-12-07 17:52:54 -08:00
parent 36c5608796
commit 16deb72678
1 changed files with 5 additions and 3 deletions

View File

@ -99,13 +99,15 @@ drdynvc_process_capability_response(struct stream *s, unsigned char cmd)
/* read client's version */ /* read client's version */
in_uint16_le(s, cap_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; 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; g_drdynvc_inited = 1;
return 0; return 0;