mirror of https://github.com/neutrinolabs/xrdp
libxrdp: frame acks, make sure max unacked frames value is valid.
This commit is contained in:
parent
d257108b92
commit
a62c467f71
|
@ -539,6 +539,10 @@ xrdp_caps_process_frame_ack(struct xrdp_rdp *self, struct stream *s, int len)
|
|||
g_writeln("xrdp_caps_process_frame_ack:");
|
||||
self->client_info.use_frame_acks = 1;
|
||||
in_uint32_le(s, self->client_info.max_unacknowledged_frame_count);
|
||||
if (self->client_info.max_unacknowledged_frame_count < 0)
|
||||
{
|
||||
self->client_info.max_unacknowledged_frame_count = 0;
|
||||
}
|
||||
g_writeln(" max_unacknowledged_frame_count %d", self->client_info.max_unacknowledged_frame_count);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue