diff options
author | speidy <speidy@gmail.com> | 2014-07-12 02:07:33 +0300 |
---|---|---|
committer | speidy <speidy@gmail.com> | 2014-07-12 02:07:33 +0300 |
commit | 13a376ae386c842309ef05668b1e4f7de1d94b2d (patch) | |
tree | 5abe980e4b63d535e9ac37f8520ae9f56c6cb6d5 /libxrdp/xrdp_iso.c | |
parent | aa0f039ceffcaaf868e80ffa044673ea1263c475 (diff) | |
download | xrdp-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.c | 2 |
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; |