summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2016-12-29 00:33:17 -0500
committerspeidy <speidy@gmail.com>2016-12-29 00:33:17 -0500
commita62c467f71b2bc94ba766cfe14dd971049b2e880 (patch)
tree1c5e11ea53723f01d0dec283dc87c25c724aea56
parentd257108b92c5eae454c5eb0ede6a4bf6112d5ff4 (diff)
downloadxrdp-proprietary-a62c467f71b2bc94ba766cfe14dd971049b2e880.tar.gz
xrdp-proprietary-a62c467f71b2bc94ba766cfe14dd971049b2e880.zip
libxrdp: frame acks, make sure max unacked frames value is valid.
-rw-r--r--libxrdp/xrdp_caps.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c
index ec971648..66c8c88d 100644
--- a/libxrdp/xrdp_caps.c
+++ b/libxrdp/xrdp_caps.c
@@ -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;
}