libxrdp: fix off by one length indicator issue

This commit is contained in:
speidy 2014-07-12 02:07:33 +03:00
parent aa0f039cef
commit 13a376ae38
1 changed files with 1 additions and 1 deletions

View File

@ -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;