xrdp_rdp_send_data() now works with --enable-devel-streamcheck

This commit is contained in:
matt335672 2021-05-19 11:37:22 +01:00
parent d0a8ed37e0
commit 763f8fab7f
2 changed files with 5 additions and 1 deletions

View File

@ -611,7 +611,7 @@ xrdp_rdp_send_data(struct xrdp_rdp *self, struct stream *s,
ls.data = mppc_enc->outputBuffer - (rdp_offset + 18);
ls.p = ls.data + rdp_offset;
ls.end = ls.p + clen;
ls.size = clen;
ls.size = s->end - s->data;
ls.iso_hdr = ls.data + iso_offset;
ls.mcs_hdr = ls.data + mcs_offset;
ls.sec_hdr = ls.data + sec_offset;

View File

@ -642,6 +642,10 @@ xrdp_sec_init(struct xrdp_sec *self, struct stream *s)
s_push_layer(s, sec_hdr, 4);
}
}
else
{
s_push_layer(s, sec_hdr, 0);
}
return 0;
}