mirror of https://github.com/neutrinolabs/xrdp
libxrdp: fix off by one length indicator issue
This commit is contained in:
parent
aa0f039cef
commit
13a376ae38
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue