summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_iso.c
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2014-07-12 02:07:33 +0300
committerspeidy <speidy@gmail.com>2014-07-12 02:07:33 +0300
commit13a376ae386c842309ef05668b1e4f7de1d94b2d (patch)
tree5abe980e4b63d535e9ac37f8520ae9f56c6cb6d5 /libxrdp/xrdp_iso.c
parentaa0f039ceffcaaf868e80ffa044673ea1263c475 (diff)
downloadxrdp-proprietary-13a376ae386c842309ef05668b1e4f7de1d94b2d.tar.gz
xrdp-proprietary-13a376ae386c842309ef05668b1e4f7de1d94b2d.zip
libxrdp: fix off by one length indicator issue
Diffstat (limited to 'libxrdp/xrdp_iso.c')
-rw-r--r--libxrdp/xrdp_iso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libxrdp/xrdp_iso.c b/libxrdp/xrdp_iso.c
index d3a3ef41..35274266 100644
--- a/libxrdp/xrdp_iso.c
+++ b/libxrdp/xrdp_iso.c
@@ -219,7 +219,7 @@ xrdp_iso_send_cc(struct xrdp_iso *self)
s_mark_end(s);
len = (int) (s->end - holdp);
- len_indicator = (int) (s->end - len_indicator_ptr);
+ len_indicator = (int) (s->end - len_indicator_ptr) - 1;
len_ptr[0] = len << 8;
len_ptr[1] = len;
len_indicator_ptr[0] = len_indicator;