summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/drdynvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/chansrv/drdynvc.c')
-rw-r--r--sesman/chansrv/drdynvc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sesman/chansrv/drdynvc.c b/sesman/chansrv/drdynvc.c
index 70b08d97..dfd8a878 100644
--- a/sesman/chansrv/drdynvc.c
+++ b/sesman/chansrv/drdynvc.c
@@ -18,7 +18,7 @@
#include "drdynvc.h"
-int g_drdynvc_chan_id;
+extern int g_drdynvc_chan_id; /* in chansrv.c */
int g_drdynvc_inited = 0;
static int APP_CC drdynvc_send_capability_request(uint16_t version);
@@ -342,24 +342,24 @@ drdynvc_process_data_first(struct stream *s, unsigned char cmd)
uint32_t chan_id;
int bytes_in_stream;
- int data_len;
int Len;
drdynvc_get_chan_id(s, cmd, &chan_id);
Len = (cmd >> 2) & 0x03;
+ /* skip data_len */
if (Len == 0)
{
- in_uint8(s, data_len);
+ in_uint8s(s, 1);
}
else if (Len == 1)
{
- in_uint16_le(s, data_len);
+ in_uint8s(s, 2);
}
else
{
- in_uint32_le(s, data_len);
+ in_uint8s(s, 4);
}
bytes_in_stream = stream_length_after_p(s);
@@ -414,7 +414,7 @@ drdynvc_process_data(struct stream *s, unsigned char cmd)
* process incoming data on a dynamic virtual channel
*
* @pram s stream containing the incoming data
- * @pram chand_id LK_TODO
+ * @pram chan_id LK_TODO
* @pram chan_flags LK_TODO
* @pram length LK_TODO
* @pram total_length LK_TODO